Class DrasylServerChannel

All Implemented Interfaces:,,, io.netty.util.AttributeMap, Comparable<>

public class DrasylServerChannel extends
A virtual ServerChannel used for overlay network management. This channel must be bind to an Identity.

(Currently) only compatible with NioEventLoop.

Inspired by LocalServerChannel.

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class

    Nested classes/interfaces inherited from interface
  • Constructor Summary

  • Method Summary

    Modifier and Type
    protected void
    protected void
    doBind(SocketAddress localAddress)
    protected void
    protected void
    protected boolean
    isCompatible( loop)
    protected DrasylAddress

    Methods inherited from class

    doDisconnect, doWrite, filterOutboundMessage, metadata, newUnsafe, remoteAddress, remoteAddress0

    Methods inherited from class

    alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doDeregister, doShutdownOutput, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, unsafe, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlush

    Methods inherited from class io.netty.util.DefaultAttributeMap

    attr, hasAttr

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.netty.util.AttributeMap

    attr, hasAttr

    Methods inherited from interface

    alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isRegistered, isWritable, localAddress, parent, pipeline, read, unsafe

    Methods inherited from interface

    bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush

    Methods inherited from interface java.lang.Comparable

  • Constructor Details

    • DrasylServerChannel

      public DrasylServerChannel()
  • Method Details

    • isCompatible

      protected boolean isCompatible( loop)
      Specified by:
      isCompatible in class
    • localAddress0

      protected DrasylAddress localAddress0()
      Specified by:
      localAddress0 in class
    • doBind

      protected void doBind(SocketAddress localAddress)
      Specified by:
      doBind in class
    • doRegister

      protected void doRegister() throws Exception
      doRegister in class
    • doClose

      protected void doClose()
      Specified by:
      doClose in class
    • doBeginRead

      protected void doBeginRead()
      Specified by:
      doBeginRead in class
    • config

      public config()
    • isOpen

      public boolean isOpen()
    • isActive

      public boolean isActive()