Class InConnectionHandler<T>
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
pt.unl.fct.di.novasys.network.pipeline.ConnectionHandler<T>
pt.unl.fct.di.novasys.network.pipeline.InConnectionHandler<T>
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler,Connection<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionInConnectionHandler(InConnListener<T> listener, MessageListener<T> consumer, io.netty.channel.EventLoop loop, Attributes selfAttrs, MessageEncoder<T> encoder, MessageDecoder<T> decoder) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelActive(io.netty.channel.ChannelHandlerContext ctx) voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) voidvoidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) voidinternalUserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) voidsendMessage(T msg) voidsendMessage(T msg, io.netty.util.concurrent.Promise<Void> promise) toString()Methods inherited from class pt.unl.fct.di.novasys.network.pipeline.ConnectionHandler
channelRead, getLoop, getPeer, getPeerAttributes, getReceivedAppBytes, getReceivedAppMessages, getReceivedControlBytes, getReceivedControlMessages, getSelfAttributes, getSentAppBytes, getSentAppMessages, getSentControlBytes, getSentControlMessages, isInbound, isOutbound, userEventTriggered, writeMethods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class io.netty.channel.ChannelHandlerAdapter
handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
InConnectionHandler
public InConnectionHandler(InConnListener<T> listener, MessageListener<T> consumer, io.netty.channel.EventLoop loop, Attributes selfAttrs, MessageEncoder<T> encoder, MessageDecoder<T> decoder)
-
-
Method Details
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter
-
sendMessage
-
sendMessage
-
disconnect
public void disconnect() -
internalUserEventTriggered
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter
-
toString
-