public abstract class VertxHandler<C extends ConnectionBase>
extends io.netty.channel.ChannelDuplexHandler
Constructor and Description |
---|
VertxHandler() |
Modifier and Type | Method and Description |
---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext chctx) |
protected abstract void |
channelRead(C connection,
ContextImpl context,
io.netty.channel.ChannelHandlerContext chctx,
Object msg) |
void |
channelRead(io.netty.channel.ChannelHandlerContext chctx,
Object msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext chctx,
Throwable t) |
protected abstract C |
getConnection(io.netty.channel.Channel ch) |
protected ContextImpl |
getContext(C connection) |
protected abstract C |
removeConnection(io.netty.channel.Channel ch) |
protected static io.netty.buffer.ByteBuf |
safeBuffer(io.netty.buffer.ByteBuf buf,
io.netty.buffer.ByteBufAllocator allocator) |
protected abstract Object |
safeObject(Object msg,
io.netty.buffer.ByteBufAllocator allocator) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
bind, close, connect, deregister, disconnect, flush, read, write
channelActive, channelRegistered, channelUnregistered
handlerAdded, handlerRemoved, isSharable
protected abstract C getConnection(io.netty.channel.Channel ch)
protected abstract C removeConnection(io.netty.channel.Channel ch)
protected ContextImpl getContext(C connection)
protected static io.netty.buffer.ByteBuf safeBuffer(io.netty.buffer.ByteBuf buf, io.netty.buffer.ByteBufAllocator allocator)
public void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelWritabilityChanged
in interface io.netty.channel.ChannelInboundHandler
channelWritabilityChanged
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext chctx, Throwable t) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelInactive(io.netty.channel.ChannelHandlerContext chctx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelReadComplete
in interface io.netty.channel.ChannelInboundHandler
channelReadComplete
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelRead(io.netty.channel.ChannelHandlerContext chctx, Object msg) throws Exception
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
userEventTriggered
in interface io.netty.channel.ChannelInboundHandler
userEventTriggered
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
protected abstract void channelRead(C connection, ContextImpl context, io.netty.channel.ChannelHandlerContext chctx, Object msg) throws Exception
Exception
Copyright © 2015. All Rights Reserved.