public class VertxNetHandler extends VertxHandler<NetSocketImpl>
Constructor and Description |
---|
VertxNetHandler(Map<io.netty.channel.Channel,NetSocketImpl> connectionMap) |
Modifier and Type | Method and Description |
---|---|
protected void |
channelRead(NetSocketImpl sock,
ContextImpl context,
io.netty.channel.ChannelHandlerContext chctx,
Object msg) |
protected NetSocketImpl |
getConnection(io.netty.channel.Channel channel) |
protected NetSocketImpl |
removeConnection(io.netty.channel.Channel channel) |
protected Object |
safeObject(Object msg,
io.netty.buffer.ByteBufAllocator allocator) |
channelInactive, channelRead, channelReadComplete, channelWritabilityChanged, exceptionCaught, getContext, safeBuffer, userEventTriggered
bind, close, connect, deregister, disconnect, flush, read, write
channelActive, channelRegistered, channelUnregistered
handlerAdded, handlerRemoved, isSharable
public VertxNetHandler(Map<io.netty.channel.Channel,NetSocketImpl> connectionMap)
protected NetSocketImpl getConnection(io.netty.channel.Channel channel)
getConnection
in class VertxHandler<NetSocketImpl>
protected NetSocketImpl removeConnection(io.netty.channel.Channel channel)
removeConnection
in class VertxHandler<NetSocketImpl>
protected void channelRead(NetSocketImpl sock, ContextImpl context, io.netty.channel.ChannelHandlerContext chctx, Object msg) throws Exception
channelRead
in class VertxHandler<NetSocketImpl>
Exception
protected Object safeObject(Object msg, io.netty.buffer.ByteBufAllocator allocator) throws Exception
safeObject
in class VertxHandler<NetSocketImpl>
Exception
Copyright © 2015. All Rights Reserved.