Interface ChannelOutboundHandlerDefaults
-
- All Superinterfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelOutboundHandler
- All Known Implementing Classes:
SaslDecoderEncoder
public interface ChannelOutboundHandlerDefaults extends io.netty.channel.ChannelOutboundHandler
This is effectively the same asChannelOutboundHandlerAdapter
but allows to be inherited in a class with another superclass.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
bind(io.netty.channel.ChannelHandlerContext ctx, SocketAddress localAddress, io.netty.channel.ChannelPromise promise)
default void
close(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)
default void
connect(io.netty.channel.ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, io.netty.channel.ChannelPromise promise)
default void
deregister(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)
default void
disconnect(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)
default void
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
default void
flush(io.netty.channel.ChannelHandlerContext ctx)
default void
handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
default void
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
default void
read(io.netty.channel.ChannelHandlerContext ctx)
default void
write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise)
-
-
-
Method Detail
-
bind
default void bind(io.netty.channel.ChannelHandlerContext ctx, SocketAddress localAddress, io.netty.channel.ChannelPromise promise) throws Exception
- Specified by:
bind
in interfaceio.netty.channel.ChannelOutboundHandler
- Throws:
Exception
-
connect
default void connect(io.netty.channel.ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, io.netty.channel.ChannelPromise promise) throws Exception
- Specified by:
connect
in interfaceio.netty.channel.ChannelOutboundHandler
- Throws:
Exception
-
disconnect
default void disconnect(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise) throws Exception
- Specified by:
disconnect
in interfaceio.netty.channel.ChannelOutboundHandler
- Throws:
Exception
-
close
default void close(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise) throws Exception
- Specified by:
close
in interfaceio.netty.channel.ChannelOutboundHandler
- Throws:
Exception
-
deregister
default void deregister(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise) throws Exception
- Specified by:
deregister
in interfaceio.netty.channel.ChannelOutboundHandler
- Throws:
Exception
-
read
default void read(io.netty.channel.ChannelHandlerContext ctx) throws Exception
- Specified by:
read
in interfaceio.netty.channel.ChannelOutboundHandler
- Throws:
Exception
-
write
default void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise) throws Exception
- Specified by:
write
in interfaceio.netty.channel.ChannelOutboundHandler
- Throws:
Exception
-
flush
default void flush(io.netty.channel.ChannelHandlerContext ctx) throws Exception
- Specified by:
flush
in interfaceio.netty.channel.ChannelOutboundHandler
- Throws:
Exception
-
handlerAdded
default void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) throws Exception
- Specified by:
handlerAdded
in interfaceio.netty.channel.ChannelHandler
- Throws:
Exception
-
handlerRemoved
default void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) throws Exception
- Specified by:
handlerRemoved
in interfaceio.netty.channel.ChannelHandler
- Throws:
Exception
-
-