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 upto
timeout timeout ms 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
- public Response getResponse()
public Response getResponse(int timeout)
timeout
timeout ms to get a receipttimeout
- public void close()
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.