Class ResponseHolder

  • public class ResponseHolder
    extends Object
    ResponseHolder utility
    • Field Detail

      • 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
        r - the response returned from the remote peer.
      • getResponse

        public Response getResponse()
        Get the Response
        the Response or null if it is closed
      • getResponse

        public Response getResponse​(int timeout)
        wait up to timeout timeout milliseconds to get a receipt
        timeout -
        the Response that was set or null if none set yet.
      • close

        public void close()
        close this holder