JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
io.netty.channel

Interface ChannelOutboundHandler

    • Method Detail

      • bind

        void bind(ChannelHandlerContext ctx,
         java.net.SocketAddress localAddress,
         ChannelPromise promise)
         throws java.lang.Exception
        Called once a bind operation is made.
        Parameters:
        ctx - the ChannelHandlerContext for which the bind operation is made
        localAddress - the SocketAddress to which it should bound
        promise - the ChannelPromise to notify once the operation completes
        Throws:
        java.lang.Exception - thrown if an error occurs
      • connect

        void connect(ChannelHandlerContext ctx,
         java.net.SocketAddress remoteAddress,
         java.net.SocketAddress localAddress,
         ChannelPromise promise)
         throws java.lang.Exception
        Called once a connect operation is made.
        Parameters:
        ctx - the ChannelHandlerContext for which the connect operation is made
        remoteAddress - the SocketAddress to which it should connect
        localAddress - the SocketAddress which is used as source on connect
        promise - the ChannelPromise to notify once the operation completes
        Throws:
        java.lang.Exception - thrown if an error occurs
      • disconnect

        void disconnect(ChannelHandlerContext ctx,
         ChannelPromise promise)
         throws java.lang.Exception
        Called once a disconnect operation is made.
        Parameters:
        ctx - the ChannelHandlerContext for which the disconnect operation is made
        promise - the ChannelPromise to notify once the operation completes
        Throws:
        java.lang.Exception - thrown if an error occurs
      • write

        void write(ChannelHandlerContext ctx,
         java.lang.Object msg,
         ChannelPromise promise)
         throws java.lang.Exception
        Called once a write operation is made. The write operation will write the messages through the ChannelPipeline. Those are then ready to be flushed to the actual Channel once Channel.flush() is called
        Parameters:
        ctx - the ChannelHandlerContext for which the write operation is made
        msg - the message to write
        promise - the ChannelPromise to notify once the operation completes
        Throws:
        java.lang.Exception - thrown if an error occurs
      • flush

        void flush(ChannelHandlerContext ctx)
         throws java.lang.Exception
        Called once a flush operation is made. The flush operation will try to flush out all previous written messages that are pending.
        Parameters:
        ctx - the ChannelHandlerContext for which the flush operation is made
        Throws:
        java.lang.Exception - thrown if an error occurs
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2008–2018 The Netty Project. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /