Package org.drasyl.channel
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 DrasylServerChannel
s.-
Field Summary
Modifier and TypeFieldDescriptionstatic final io.netty.channel.ChannelOption<Boolean>
static final io.netty.channel.ChannelOption<Duration>
static final io.netty.channel.ChannelOption<Integer>
static final Map<IdentityPublicKey,
InetSocketAddress> static final io.netty.channel.ChannelOption<Duration>
static final io.netty.channel.ChannelOption<Duration>
static final io.netty.channel.ChannelOption<Boolean>
static final io.netty.channel.ChannelOption<Byte>
static final io.netty.channel.ChannelOption<Boolean>
static final io.netty.channel.ChannelOption<Duration>
static final io.netty.channel.ChannelOption<Integer>
static final io.netty.channel.ChannelOption<Integer>
static final io.netty.channel.ChannelOption<Duration>
static final io.netty.channel.ChannelOption<PeersManager>
static final io.netty.channel.ChannelOption<Map<IdentityPublicKey,
InetSocketAddress>> static final io.netty.channel.ChannelOption<io.netty.bootstrap.Bootstrap>
static final io.netty.channel.ChannelOption<Class<? extends io.netty.channel.socket.SocketChannel>>
static final io.netty.channel.ChannelOption<Integer>
static final io.netty.channel.ChannelOption<Supplier<io.netty.channel.EventLoop>>
static final io.netty.channel.ChannelOption<InetSocketAddress>
static final io.netty.channel.ChannelOption<io.netty.bootstrap.Bootstrap>
static final io.netty.channel.ChannelOption<Class<? extends io.netty.channel.socket.SocketChannel>>
static final io.netty.channel.ChannelOption<Supplier<io.netty.channel.EventLoop>>
static final io.netty.channel.ChannelOption<InetSocketAddress>
static final io.netty.channel.ChannelOption<Supplier<io.netty.bootstrap.Bootstrap>>
static final io.netty.channel.ChannelOption<Class<? extends io.netty.channel.socket.DatagramChannel>>
static final io.netty.channel.ChannelOption<Supplier<io.netty.channel.EventLoop>>
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
byte
int
int
<T> T
getOption
(io.netty.channel.ChannelOption<T> option) Supplier<io.netty.bootstrap.Bootstrap>
Class<? extends io.netty.channel.socket.SocketChannel>
int
Supplier<io.netty.channel.EventLoop>
Supplier<io.netty.bootstrap.ServerBootstrap>
Class<? extends io.netty.channel.socket.ServerSocketChannel>
Supplier<io.netty.channel.EventLoopGroup>
Supplier<io.netty.bootstrap.Bootstrap>
Class<? extends io.netty.channel.socket.DatagramChannel>
Supplier<io.netty.channel.EventLoop>
boolean
boolean
boolean
void
setArmingSessionExpireAfter
(Duration armingSessionExpireAfter) void
setArmingSessionMaxCount
(int armingSessionMaxCount) void
setHelloInterval
(Duration helloInterval) void
setHelloTimeout
(Duration helloTimeout) void
setHolePunchingEnabled
(Boolean holePunchingEnabled) void
setHopLimit
(byte hopLimit) void
setMaxMessageAge
(Duration maxMessageAge) <T> boolean
setOption
(io.netty.channel.ChannelOption<T> option, T value) void
setPathIdleTime
(Duration pathIdleTime) void
setSuperPeers
(Map<IdentityPublicKey, InetSocketAddress> superPeers) void
setTcpClientBootstrap
(Supplier<io.netty.bootstrap.Bootstrap> tcpClientBootstrap) void
setTcpClientChannelClass
(Class<? extends io.netty.channel.socket.SocketChannel> tcpClientChannelClass) void
setTcpClientConnectPort
(int tcpClientConnectPort) void
setTcpClientEventLoop
(Supplier<io.netty.channel.EventLoop> tcpClientEventLoop) void
setUdpBind
(InetSocketAddress udpBind) void
setUdpBootstrap
(Supplier<io.netty.bootstrap.Bootstrap> udpBootstrap) void
setUdpChannelClass
(Class<? extends io.netty.channel.socket.DatagramChannel> udpChannelClass) void
setUdpEventLoop
(Supplier<io.netty.channel.EventLoop> udpEventLoop) Methods inherited from class io.netty.channel.DefaultChannelConfig
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setMaxMessagesPerWrite, setMessageSizeEstimator, setOptions, setRecvByteBufAllocator, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount, validate
-
Field Details
-
DEFAULT_SUPER_PEERS
-
NETWORK_ID
-
PEERS_MANAGER
-
ARMING_ENABLED
-
ARMING_SESSION_MAX_COUNT
-
ARMING_SESSION_EXPIRE_AFTER
-
HELLO_INTERVAL
-
HELLO_TIMEOUT
-
MAX_PEERS
-
SUPER_PEERS
public static final io.netty.channel.ChannelOption<Map<IdentityPublicKey,InetSocketAddress>> SUPER_PEERS -
UDP_BIND
-
UDP_EVENT_LOOP
public static final io.netty.channel.ChannelOption<Supplier<io.netty.channel.EventLoop>> UDP_EVENT_LOOP -
UDP_CHANNEL_CLASS
public static final io.netty.channel.ChannelOption<Class<? extends io.netty.channel.socket.DatagramChannel>> UDP_CHANNEL_CLASS -
UDP_BOOTSTRAP
public static final io.netty.channel.ChannelOption<Supplier<io.netty.bootstrap.Bootstrap>> UDP_BOOTSTRAP -
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
-
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
-
HOLE_PUNCHING_ENABLED
-
PATH_IDLE_TIME
-
HOP_LIMIT
-
INTRA_VM_DISCOVERY_ENABLED
-
-
Constructor Details
-
DrasylServerChannelConfig
public DrasylServerChannelConfig(io.netty.channel.Channel channel)
-
-
Method Details
-
getOptions
- Specified by:
getOptions
in interfaceio.netty.channel.ChannelConfig
- Overrides:
getOptions
in classio.netty.channel.DefaultChannelConfig
-
getOption
public <T> T getOption(io.netty.channel.ChannelOption<T> option) - Specified by:
getOption
in interfaceio.netty.channel.ChannelConfig
- Overrides:
getOption
in classio.netty.channel.DefaultChannelConfig
-
getNetworkId
public int getNetworkId() -
getPeersManager
-
isArmingEnabled
public boolean isArmingEnabled() -
getArmingSessionMaxCount
public int getArmingSessionMaxCount() -
getArmingSessionExpireAfter
-
getHelloInterval
-
getHelloTimeout
-
getMaxPeers
public int getMaxPeers() -
getSuperPeers
-
getUdpBind
-
getUdpEventLoop
-
getUdpChannelClass
-
getUdpBootstrap
-
getTcpClientConnectPort
public int getTcpClientConnectPort() -
getTcpClientEventLoop
-
getTcpClientChannelClass
-
getTcpClientBootstrap
-
getTcpServerBind
-
getTcpServerEventLoopGroup
-
getTcpServerChannelClass
-
getTcpServerBootstrap
-
getMaxMessageAge
-
isHolePunchingEnabled
public boolean isHolePunchingEnabled() -
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 interfaceio.netty.channel.ChannelConfig
- Overrides:
setOption
in classio.netty.channel.DefaultChannelConfig
-
setArmingSessionMaxCount
public void setArmingSessionMaxCount(int armingSessionMaxCount) -
setArmingSessionExpireAfter
-
setHelloInterval
-
setHelloTimeout
-
setSuperPeers
-
setUdpBind
-
setUdpEventLoop
-
setUdpChannelClass
public void setUdpChannelClass(Class<? extends io.netty.channel.socket.DatagramChannel> udpChannelClass) -
setUdpBootstrap
-
setTcpClientConnectPort
public void setTcpClientConnectPort(int tcpClientConnectPort) -
setTcpClientEventLoop
-
setTcpClientChannelClass
public void setTcpClientChannelClass(Class<? extends io.netty.channel.socket.SocketChannel> tcpClientChannelClass) -
setTcpClientBootstrap
-
setMaxMessageAge
-
setHolePunchingEnabled
-
setPathIdleTime
-
setHopLimit
public void setHopLimit(byte hopLimit)
-