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, readensureNotSharable, exceptionCaught, isSharableprotected 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.ChannelOutboundHandlerwrite in class io.netty.channel.ChannelOutboundHandlerAdapterExceptionpublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterExceptionpublic void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerRemoved in interface io.netty.channel.ChannelHandlerhandlerRemoved in class io.netty.channel.ChannelHandlerAdapterExceptionprotected 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.