Interface ServerReceiveContext<T>

    • Method Detail

      • readMetaData

        Optional<MessageMetaData> readMetaData()
        Reads the message's meta-data.
        Returns:
        Message's meta-data.
      • overrideMessage

        void overrideMessage​(T msg)
        Overrides the received message with the specified one.
        Parameters:
        msg - New message that should replace the received one.
      • setAttribute

        Object setAttribute​(String name,
                            Object value)
        Sets an attribute of this context.

        Attributes are local to this context object and do not get transferred to a remote peer.

        Parameters:
        name - Name.
        value - Value.
        Returns:
        Previous value or null if attribute didn't have any value.
        See Also:
        ServerInboundContext.getAttribute(String)