Class ConnectionHandshakeChannelInitializer

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<DrasylChannel>
org.drasyl.channel.ConnectionHandshakeChannelInitializer
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

@Deprecated public abstract class ConnectionHandshakeChannelInitializer extends io.netty.channel.ChannelInitializer<DrasylChannel>
Deprecated.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Duration
    Deprecated.
     
    protected final Duration
    Deprecated.
     
    protected final boolean
    Deprecated.
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ConnectionHandshakeChannelInitializer(boolean initiateHandshake)
    Deprecated.
     
    protected
    ConnectionHandshakeChannelInitializer(Duration handshakeTimeout, boolean initiateHandshake)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    Deprecated.
     
    protected abstract void
    handshakeFailed(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
    Deprecated.
     
    protected void
    Deprecated.
     

    Methods inherited from class io.netty.channel.ChannelInitializer

    channelRegistered, exceptionCaught, handlerAdded, handlerRemoved

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_HANDSHAKE_TIMEOUT

      public static final Duration DEFAULT_HANDSHAKE_TIMEOUT
      Deprecated.
    • handshakeTimeout

      protected final Duration handshakeTimeout
      Deprecated.
    • initiateHandshake

      protected final boolean initiateHandshake
      Deprecated.
  • Constructor Details

    • ConnectionHandshakeChannelInitializer

      protected ConnectionHandshakeChannelInitializer(Duration handshakeTimeout, boolean initiateHandshake)
      Deprecated.
    • ConnectionHandshakeChannelInitializer

      protected ConnectionHandshakeChannelInitializer(boolean initiateHandshake)
      Deprecated.
  • Method Details

    • initChannel

      protected void initChannel(DrasylChannel ch) throws Exception
      Deprecated.
      Specified by:
      initChannel in class io.netty.channel.ChannelInitializer<DrasylChannel>
      Throws:
      Exception
    • handshakeCompleted

      protected abstract void handshakeCompleted(DrasylChannel ch) throws Exception
      Deprecated.
      Throws:
      Exception
    • handshakeFailed

      protected abstract void handshakeFailed(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
      Deprecated.