public abstract class VertxHandler<C extends ConnectionBase>
extends io.netty.channel.ChannelDuplexHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<io.netty.channel.Channel,C> |
connectionMap |
protected VertxInternal |
vertx |
| Modifier | Constructor and Description |
|---|---|
protected |
VertxHandler(VertxInternal vertx,
java.util.Map<io.netty.channel.Channel,C> connectionMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext chctx) |
protected abstract void |
channelRead(C connection,
DefaultContext context,
io.netty.channel.ChannelHandlerContext chctx,
java.lang.Object msg) |
void |
channelRead(io.netty.channel.ChannelHandlerContext chctx,
java.lang.Object msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext chctx,
java.lang.Throwable t) |
protected DefaultContext |
getContext(C connection) |
protected static io.netty.buffer.ByteBuf |
safeBuffer(io.netty.buffer.ByteBuf buf) |
protected abstract java.lang.Object |
safeObject(java.lang.Object msg) |
bind, close, connect, deregister, disconnect, flush, read, writechannelActive, channelRegistered, channelUnregistered, userEventTriggeredhandlerAdded, handlerRemoved, isSharableprotected final VertxInternal vertx
protected final java.util.Map<io.netty.channel.Channel,C extends ConnectionBase> connectionMap
protected VertxHandler(VertxInternal vertx, java.util.Map<io.netty.channel.Channel,C> connectionMap)
protected DefaultContext getContext(C connection)
protected static io.netty.buffer.ByteBuf safeBuffer(io.netty.buffer.ByteBuf buf)
public void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelWritabilityChanged in interface io.netty.channel.ChannelInboundHandlerchannelWritabilityChanged in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext chctx,
java.lang.Throwable t)
throws java.lang.Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext chctx)
throws java.lang.Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void channelRead(io.netty.channel.ChannelHandlerContext chctx,
java.lang.Object msg)
throws java.lang.Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionprotected abstract void channelRead(C connection, DefaultContext context, io.netty.channel.ChannelHandlerContext chctx, java.lang.Object msg) throws java.lang.Exception
java.lang.Exceptionprotected abstract java.lang.Object safeObject(java.lang.Object msg)
throws java.lang.Exception
java.lang.Exception