Class DrasylServerChannelConfig

java.lang.Object
io.netty.channel.DefaultChannelConfig
org.drasyl.channel.DrasylServerChannelConfig
All Implemented Interfaces:
io.netty.channel.ChannelConfig

public class DrasylServerChannelConfig extends io.netty.channel.DefaultChannelConfig
The ChannelConfig for DrasylServerChannels.
  • Field Details

    • DEFAULT_SUPER_PEERS

      public static final Map<IdentityPublicKey,InetSocketAddress> DEFAULT_SUPER_PEERS
    • NETWORK_ID

      public static final io.netty.channel.ChannelOption<Integer> NETWORK_ID
    • PEERS_MANAGER

      public static final io.netty.channel.ChannelOption<PeersManager> PEERS_MANAGER
    • ARMING_ENABLED

      public static final io.netty.channel.ChannelOption<Boolean> ARMING_ENABLED
    • ARMING_SESSION_MAX_COUNT

      public static final io.netty.channel.ChannelOption<Integer> ARMING_SESSION_MAX_COUNT
    • ARMING_SESSION_EXPIRE_AFTER

      public static final io.netty.channel.ChannelOption<Duration> ARMING_SESSION_EXPIRE_AFTER
    • HELLO_INTERVAL

      public static final io.netty.channel.ChannelOption<Duration> HELLO_INTERVAL
    • HELLO_TIMEOUT

      public static final io.netty.channel.ChannelOption<Duration> HELLO_TIMEOUT
    • MAX_PEERS

      public static final io.netty.channel.ChannelOption<Integer> MAX_PEERS
    • SUPER_PEERS

      public static final io.netty.channel.ChannelOption<Map<IdentityPublicKey,InetSocketAddress>> SUPER_PEERS
    • UDP_BIND

      public static final io.netty.channel.ChannelOption<InetSocketAddress> UDP_BIND
    • UDP_BOOTSTRAP

      public static final io.netty.channel.ChannelOption<Function<DrasylServerChannel,io.netty.bootstrap.Bootstrap>> UDP_BOOTSTRAP
    • TCP_CLIENT_CONNECT_PORT

      public static final io.netty.channel.ChannelOption<Integer> TCP_CLIENT_CONNECT_PORT
    • TCP_CLIENT_EVENT_LOOP

      public static final io.netty.channel.ChannelOption<Supplier<io.netty.channel.EventLoop>> TCP_CLIENT_EVENT_LOOP
    • TCP_CLIENT_CHANNEL_CLASS

      public static final io.netty.channel.ChannelOption<Class<? extends io.netty.channel.socket.SocketChannel>> TCP_CLIENT_CHANNEL_CLASS
    • TCP_CLIENT_BOOTSTRAP

      public static final io.netty.channel.ChannelOption<io.netty.bootstrap.Bootstrap> TCP_CLIENT_BOOTSTRAP
    • TCP_SERVER_BIND

      public static final io.netty.channel.ChannelOption<InetSocketAddress> TCP_SERVER_BIND
    • TCP_SERVER_EVENT_LOOP

      public static final io.netty.channel.ChannelOption<Supplier<io.netty.channel.EventLoop>> TCP_SERVER_EVENT_LOOP
    • TCP_SERVER_CHANNEL_CLASS

      public static final io.netty.channel.ChannelOption<Class<? extends io.netty.channel.socket.SocketChannel>> TCP_SERVER_CHANNEL_CLASS
    • TCP_SERVER_BOOTSTRAP

      public static final io.netty.channel.ChannelOption<io.netty.bootstrap.Bootstrap> TCP_SERVER_BOOTSTRAP
    • MAX_MESSAGE_AGE

      public static final io.netty.channel.ChannelOption<Duration> MAX_MESSAGE_AGE
    • HOLE_PUNCHING_ENABLED

      public static final io.netty.channel.ChannelOption<Boolean> HOLE_PUNCHING_ENABLED
    • PATH_IDLE_TIME

      public static final io.netty.channel.ChannelOption<Duration> PATH_IDLE_TIME
    • HOP_LIMIT

      public static final io.netty.channel.ChannelOption<Byte> HOP_LIMIT
    • INTRA_VM_DISCOVERY_ENABLED

      public static final io.netty.channel.ChannelOption<Boolean> INTRA_VM_DISCOVERY_ENABLED
  • Constructor Details

    • DrasylServerChannelConfig

      public DrasylServerChannelConfig(io.netty.channel.Channel channel)
  • Method Details

    • getOptions

      public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
      Specified by:
      getOptions in interface io.netty.channel.ChannelConfig
      Overrides:
      getOptions in class io.netty.channel.DefaultChannelConfig
    • getOption

      public <T> T getOption(io.netty.channel.ChannelOption<T> option)
      Specified by:
      getOption in interface io.netty.channel.ChannelConfig
      Overrides:
      getOption in class io.netty.channel.DefaultChannelConfig
    • getNetworkId

      public int getNetworkId()
    • getPeersManager

      public PeersManager getPeersManager()
    • isArmingEnabled

      public boolean isArmingEnabled()
    • getArmingSessionMaxCount

      public int getArmingSessionMaxCount()
    • getArmingSessionExpireAfter

      public Duration getArmingSessionExpireAfter()
    • getHelloInterval

      public Duration getHelloInterval()
    • getHelloTimeout

      public Duration getHelloTimeout()
    • getMaxPeers

      public int getMaxPeers()
    • getSuperPeers

      public Map<IdentityPublicKey,InetSocketAddress> getSuperPeers()
    • getUdpBind

      public InetSocketAddress getUdpBind()
    • getUdpBootstrap

      public Function<DrasylServerChannel,io.netty.bootstrap.Bootstrap> getUdpBootstrap()
    • getTcpClientConnectPort

      public int getTcpClientConnectPort()
    • getTcpClientEventLoop

      public Supplier<io.netty.channel.EventLoop> getTcpClientEventLoop()
    • getTcpClientChannelClass

      public Class<? extends io.netty.channel.socket.SocketChannel> getTcpClientChannelClass()
    • getTcpClientBootstrap

      public Supplier<io.netty.bootstrap.Bootstrap> getTcpClientBootstrap()
    • getTcpServerBind

      public InetSocketAddress getTcpServerBind()
    • getTcpServerEventLoopGroup

      public Supplier<io.netty.channel.EventLoopGroup> getTcpServerEventLoopGroup()
    • getTcpServerChannelClass

      public Class<? extends io.netty.channel.socket.ServerSocketChannel> getTcpServerChannelClass()
    • getTcpServerBootstrap

      public Supplier<io.netty.bootstrap.ServerBootstrap> getTcpServerBootstrap()
    • getMaxMessageAge

      public Duration getMaxMessageAge()
    • isHolePunchingEnabled

      public boolean isHolePunchingEnabled()
    • getPathIdleTime

      public Duration getPathIdleTime()
    • getHopLimit

      public byte getHopLimit()
    • isIntraVmDiscoveryEnabled

      public boolean isIntraVmDiscoveryEnabled()
    • setOption

      public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)
      Specified by:
      setOption in interface io.netty.channel.ChannelConfig
      Overrides:
      setOption in class io.netty.channel.DefaultChannelConfig
    • setArmingSessionMaxCount

      public void setArmingSessionMaxCount(int armingSessionMaxCount)
    • setArmingSessionExpireAfter

      public void setArmingSessionExpireAfter(Duration armingSessionExpireAfter)
    • setHelloInterval

      public void setHelloInterval(Duration helloInterval)
    • setHelloTimeout

      public void setHelloTimeout(Duration helloTimeout)
    • setSuperPeers

      public void setSuperPeers(Map<IdentityPublicKey,InetSocketAddress> superPeers)
    • setUdpBind

      public void setUdpBind(InetSocketAddress udpBind)
    • setUdpBootstrap

      public void setUdpBootstrap(Function<DrasylServerChannel,io.netty.bootstrap.Bootstrap> udpBootstrap)
    • setTcpClientConnectPort

      public void setTcpClientConnectPort(int tcpClientConnectPort)
    • setTcpClientEventLoop

      public void setTcpClientEventLoop(Supplier<io.netty.channel.EventLoop> tcpClientEventLoop)
    • setTcpClientChannelClass

      public void setTcpClientChannelClass(Class<? extends io.netty.channel.socket.SocketChannel> tcpClientChannelClass)
    • setTcpClientBootstrap

      public void setTcpClientBootstrap(Supplier<io.netty.bootstrap.Bootstrap> tcpClientBootstrap)
    • setMaxMessageAge

      public void setMaxMessageAge(Duration maxMessageAge)
    • setHolePunchingEnabled

      public void setHolePunchingEnabled(Boolean holePunchingEnabled)
    • setPathIdleTime

      public void setPathIdleTime(Duration pathIdleTime)
    • setHopLimit

      public void setHopLimit(byte hopLimit)