Class ResponseHolder
java.lang.Object
org.apache.activemq.transport.tcp.ResponseHolder
ResponseHolder utility
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
close this holderGet the ResponsegetResponse
(int timeout) wait up totimeout
timeout milliseconds to get a receiptvoid
Set the Response for this holder
-
Field Details
-
response
-
lock
-
notified
protected boolean notified
-
-
Constructor Details
-
ResponseHolder
public ResponseHolder()Construct a receipt holder
-
-
Method Details
-
setResponse
Set the Response for this holder- Parameters:
r
- the response returned from the remote peer.
-
getResponse
Get the Response- Returns:
- the Response or null if it is closed
-
getResponse
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
-