Class ResponseHolder

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

public class ResponseHolder extends Object
ResponseHolder utility
  • Field Details

    • response

      protected Response response
    • lock

      protected Object lock
    • notified

      protected boolean notified
  • Constructor Details

    • ResponseHolder

      public ResponseHolder()
      Construct a receipt holder
  • Method Details

    • 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 to timeout 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