org.apache.activemq.transport.tcp
Class ResponseHolder

java.lang.Object
  extended by org.apache.activemq.transport.tcp.ResponseHolder

public class ResponseHolder
extends Object

ResponseHolder utility


Field Summary
protected  Object lock
           
protected  boolean notified
           
protected  Response response
           
 
Constructor Summary
ResponseHolder()
          Construct a receipt holder
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

response

protected Response response

lock

protected Object lock

notified

protected boolean notified
Constructor Detail

ResponseHolder

public ResponseHolder()
Construct a receipt holder

Method Detail

setResponse

public void setResponse(Response r)
Set the Response for this holder

Parameters:
r -

getResponse

public Response getResponse()
Get the Response

Returns:
the Response or null if it is closed

getResponse

public Response getResponse(int timeout)
wait upto timeout timeout ms to get a receipt

Parameters:
timeout -
Returns:

close

public void close()
close this holder



Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.