Class DownstreamChannelStateEvent

    • Constructor Detail

      • DownstreamChannelStateEvent

        public DownstreamChannelStateEvent​(Channel channel,
                                           ChannelFuture future,
                                           ChannelState state,
                                           java.lang.Object value)
        Creates a new instance.
    • Method Detail

      • getFuture

        public ChannelFuture getFuture()
        Description copied from interface: ChannelEvent
        Returns the ChannelFuture which is associated with this event. If this event is an upstream event, this method will always return a SucceededChannelFuture because the event has occurred already. If this event is a downstream event (i.e. I/O request), the returned future will be notified when the I/O request succeeds or fails.
        Specified by:
        getFuture in interface ChannelEvent
      • getValue

        public java.lang.Object getValue()
        Description copied from interface: ChannelStateEvent
        Returns the value of the changed property of the Channel. Please refer to ChannelState documentation to find out the allowed values for each property.
        Specified by:
        getValue in interface ChannelStateEvent
      • toString

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