public abstract class MessageOutboundHandler
extends io.netty.channel.ChannelOutboundHandlerAdapter
Abstract MessageOutboundHandler class.
Modifier | Constructor and Description |
---|---|
protected |
MessageOutboundHandler()
Constructor for MessageOutboundHandler.
|
protected |
MessageOutboundHandler(Class<? extends AbstractRequest> filterRequestClass,
Class<?> filterMessageType)
Constructor for MessageOutboundHandler.
|
Modifier and Type | Method and Description |
---|---|
protected void |
debug(String msg,
Object... args)
debug.
|
protected void |
error(String msg,
Object... args)
error.
|
protected NettyChannelContext |
getContext()
getContext.
|
protected Envelope<AbstractRequest> |
getRequest()
getRequest.
|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
info(String msg,
Object... args)
info.
|
protected void |
log(String msg,
BiConsumer<String,Object[]> level,
Object... args)
log.
|
protected void |
trace(String msg,
Object... args)
trace.
|
protected void |
warn(String msg,
Object... args)
warn.
|
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
protected void |
writeMessage(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
writeMessage.
|
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, isSharable
protected MessageOutboundHandler()
Constructor for MessageOutboundHandler.
protected MessageOutboundHandler(Class<? extends AbstractRequest> filterRequestClass, Class<?> filterMessageType)
Constructor for MessageOutboundHandler.
protected void writeMessage(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise) throws Exception
writeMessage.
public final void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise) throws Exception
write
in interface io.netty.channel.ChannelOutboundHandler
write
in class io.netty.channel.ChannelOutboundHandlerAdapter
Exception
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) throws Exception
handlerAdded
in interface io.netty.channel.ChannelHandler
handlerAdded
in class io.netty.channel.ChannelHandlerAdapter
Exception
public void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) throws Exception
handlerRemoved
in interface io.netty.channel.ChannelHandler
handlerRemoved
in class io.netty.channel.ChannelHandlerAdapter
Exception
protected final NettyChannelContext getContext()
getContext.
NettyChannelContext
objectprotected final Envelope<AbstractRequest> getRequest()
getRequest.
Envelope
objectprotected final void log(String msg, BiConsumer<String,Object[]> level, Object... args)
log.
msg
- a String
objectlevel
- a BiConsumer
objectargs
- a Object
objectCopyright © 2016–2024. All rights reserved.