Class OutConnectionHandler<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.OutConnectionHandler<T>
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler,io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>,EventListener,Connection<T>
public class OutConnectionHandler<T>
extends ConnectionHandler<T>
implements io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionOutConnectionHandler(Host peer, io.netty.bootstrap.Bootstrap bootstrap, OutConnListener<T> listener, MessageListener<T> consumer, ISerializer<T> serializer, io.netty.channel.EventLoop loop, Attributes selfAttrs, int hbInterval, int hbTolerance) -
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) voidoperationComplete(io.netty.channel.ChannelFuture future) 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
-
OutConnectionHandler
public OutConnectionHandler(Host peer, io.netty.bootstrap.Bootstrap bootstrap, OutConnListener<T> listener, MessageListener<T> consumer, ISerializer<T> serializer, io.netty.channel.EventLoop loop, Attributes selfAttrs, int hbInterval, int hbTolerance)
-
-
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
- Specified by:
sendMessagein interfaceConnection<T>
-
sendMessage
- Specified by:
sendMessagein interfaceConnection<T>
-
disconnect
public void disconnect()- Specified by:
disconnectin interfaceConnection<T>
-
internalUserEventTriggered
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
operationComplete
public void operationComplete(io.netty.channel.ChannelFuture future) - Specified by:
operationCompletein interfaceio.netty.util.concurrent.GenericFutureListener<T>
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter
-
toString
-