public class ResponseHolder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Object |
lock |
protected boolean |
notified |
protected Response |
response |
| Constructor and Description |
|---|
ResponseHolder()
Construct a receipt holder
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close this holder
|
Response |
getResponse()
Get the Response
|
Response |
getResponse(int timeout)
wait up to
timeout timeout milliseconds to get a receipt |
void |
setResponse(Response r)
Set the Response for this holder
|
protected boolean notified
public ResponseHolder()
public void setResponse(Response r)
r - the response returned from the remote peer.public Response getResponse()
public Response getResponse(int timeout)
timeout timeout milliseconds to get a receipttimeout - public void close()
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.