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>
  • Constructor Details

  • Method Details

    • channelActive

      public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      channelActive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
    • sendMessage

      public void sendMessage(T msg, io.netty.util.concurrent.Promise<Void> promise)
      Specified by:
      sendMessage in interface Connection<T>
    • sendMessage

      public void sendMessage(T msg)
      Specified by:
      sendMessage in interface Connection<T>
    • disconnect

      public void disconnect()
      Specified by:
      disconnect in interface Connection<T>
    • internalUserEventTriggered

      public void internalUserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)
    • exceptionCaught

      public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelHandler
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
    • operationComplete

      public void operationComplete(io.netty.channel.ChannelFuture future)
      Specified by:
      operationComplete in interface io.netty.util.concurrent.GenericFutureListener<T>
    • channelInactive

      public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      channelInactive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelInactive in class io.netty.channel.ChannelInboundHandlerAdapter
    • toString

      public String toString()
      Overrides:
      toString in class Object