Package org.drasyl.cli.channel
Class AbstractChannelInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<org.drasyl.channel.DrasylServerChannel>
-
- org.drasyl.cli.channel.AbstractChannelInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Direct Known Subclasses:
PerfClientChannelInitializer
,PerfServerChannelInitializer
,TunnelConsumeChannelInitializer
,TunnelExposeChannelInitializer
,WormholeReceiveChannelInitializer
,WormholeSendChannelInitializer
public abstract class AbstractChannelInitializer extends io.netty.channel.ChannelInitializer<org.drasyl.channel.DrasylServerChannel>
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_PEERS
static int
MAX_TIME_OFFSET_MILLIS
static int
PING_COMMUNICATION_TIMEOUT_MILLIS
static int
PING_INTERVAL_MILLIS
static int
PING_TIMEOUT_MILLIS
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractChannelInitializer(org.drasyl.identity.Identity identity, InetSocketAddress bindAddress, int networkId, long onlineTimeoutMillis, Map<org.drasyl.identity.IdentityPublicKey,InetSocketAddress> superPeers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initChannel(org.drasyl.channel.DrasylServerChannel ch)
-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Field Detail
-
PING_INTERVAL_MILLIS
public static final int PING_INTERVAL_MILLIS
- See Also:
- Constant Field Values
-
PING_TIMEOUT_MILLIS
public static final int PING_TIMEOUT_MILLIS
- See Also:
- Constant Field Values
-
MAX_TIME_OFFSET_MILLIS
public static final int MAX_TIME_OFFSET_MILLIS
- See Also:
- Constant Field Values
-
PING_COMMUNICATION_TIMEOUT_MILLIS
public static final int PING_COMMUNICATION_TIMEOUT_MILLIS
- See Also:
- Constant Field Values
-
MAX_PEERS
public static final int MAX_PEERS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractChannelInitializer
protected AbstractChannelInitializer(org.drasyl.identity.Identity identity, InetSocketAddress bindAddress, int networkId, long onlineTimeoutMillis, Map<org.drasyl.identity.IdentityPublicKey,InetSocketAddress> superPeers)
-
-