Class WriteRequestWrapper

    • Constructor Detail

      • WriteRequestWrapper

        public WriteRequestWrapper​(WriteRequest parentRequest)
        Creates a new instance that wraps the specified request.
        Parameters:
        parentRequest - The parent's request
    • Method Detail

      • getDestination

        public java.net.SocketAddress getDestination()
        Returns the destination of this write request.
        Specified by:
        getDestination in interface WriteRequest
        Returns:
        null for the default destination
      • getMessage

        public java.lang.Object getMessage()
        Specified by:
        getMessage in interface WriteRequest
        Returns:
        a message object to be written.
      • getParentRequest

        public WriteRequest getParentRequest()
        Returns:
        the wrapped request object.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isEncoded

        public boolean isEncoded()
        Tells if the current message has been encoded
        Specified by:
        isEncoded in interface WriteRequest
        Returns:
        true if the message has already been encoded