Package se.sics.kompics.network.netty
Class StreamHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<M>
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Direct Known Subclasses:
TCPServerHandler
,UDTServerHandler
@Sharable public class StreamHandler extends BaseHandler<Msg<?,?>>
- Author:
- Lars Kroll <[email protected]>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description StreamHandler(NettyNetwork component, Transport protocol)
-
Method Summary
Modifier and Type Method Description void
channelInactive(io.netty.channel.ChannelHandlerContext ctx)
protected void
channelRead0(io.netty.channel.ChannelHandlerContext ctx, Msg<?,?> msg)
Methods inherited from class se.sics.kompics.network.netty.BaseHandler
channelActive, exceptionCaught
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
Constructor Details
-
Method Details
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, Msg<?,?> msg) throws Exception -
channelInactive
- Specified by:
channelInactive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelInactive
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-