Class ResponseHolder
- java.lang.Object
-
- org.apache.activemq.transport.tcp.ResponseHolder
-
public class ResponseHolder extends Object
ResponseHolder utility
-
-
Constructor Summary
Constructors Constructor Description ResponseHolder()
Construct a receipt holder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
close this holderResponse
getResponse()
Get the ResponseResponse
getResponse(int timeout)
wait up totimeout
timeout milliseconds to get a receiptvoid
setResponse(Response r)
Set the Response for this holder
-
-
-
Method Detail
-
setResponse
public void setResponse(Response r)
Set the Response for this holder- Parameters:
r
- the response returned from the remote peer.
-
getResponse
public Response getResponse()
Get the Response- Returns:
- the Response or null if it is closed
-
getResponse
public Response getResponse(int timeout)
wait up totimeout
timeout milliseconds to get a receipt- Parameters:
timeout
-- Returns:
- the Response that was set or null if none set yet.
-
close
public void close()
close this holder
-
-