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
        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