public abstract class MessageInboundHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
Abstract MessageInboundHandler class.
Modifier | Constructor and Description |
---|---|
protected |
MessageInboundHandler()
Constructor for MessageInboundHandler.
|
Modifier and Type | Method and Description |
---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
protected void |
debug(org.slf4j.Logger logger,
io.netty.channel.ChannelHandlerContext ctx,
String msg,
Object... args)
debug.
|
protected void |
debug(org.slf4j.Logger logger,
org.slf4j.Marker marker,
String msg,
Object... args)
debug.
|
protected void |
debug(org.slf4j.Logger logger,
String msg,
Object... args)
debug.
|
protected void |
debug(String msg,
Object... args)
debug.
|
protected void |
error(org.slf4j.Logger logger,
io.netty.channel.ChannelHandlerContext ctx,
String msg,
Object... args)
error.
|
protected void |
error(String msg,
Object... args)
error.
|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
info(String msg,
Object... args)
info.
|
protected boolean |
isDebugEnabled()
isDebugEnabled.
|
protected void |
log(String msg,
BiConsumer<String,Object[]> level,
Object... args)
log.
|
protected void |
log(String msg,
io.netty.channel.ChannelHandlerContext ctx,
BiConsumer<String,Object[]> level,
Object... args)
log.
|
protected void |
printField(String name,
Object value)
printField.
|
protected void |
readMessage(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
readMessage.
|
protected void |
trace(String msg,
Object... args)
trace.
|
protected void |
warn(String msg,
Object... args)
warn.
|
protected MessageInboundHandler()
Constructor for MessageInboundHandler.
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
public final void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
protected void readMessage(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
readMessage.
protected boolean isDebugEnabled()
isDebugEnabled.
protected final void log(String msg, BiConsumer<String,Object[]> level, Object... args)
log.
msg
- a String
objectlevel
- a BiConsumer
objectargs
- a Object
objectprotected void error(org.slf4j.Logger logger, io.netty.channel.ChannelHandlerContext ctx, String msg, Object... args)
error.
protected final void log(String msg, io.netty.channel.ChannelHandlerContext ctx, BiConsumer<String,Object[]> level, Object... args)
log.
msg
- a String
objectctx
- a ChannelHandlerContext
objectlevel
- a BiConsumer
objectargs
- a Object
objectprotected void debug(org.slf4j.Logger logger, io.netty.channel.ChannelHandlerContext ctx, String msg, Object... args)
debug.
protected void debug(org.slf4j.Logger logger, org.slf4j.Marker marker, String msg, Object... args)
debug.
Copyright © 2016–2024. All rights reserved.