Package org.drasyl.channel.rs
Class RustDrasylServerChannelConfig
java.lang.Object
io.netty.channel.DefaultChannelConfig
org.drasyl.channel.rs.RustDrasylServerChannelConfig
- All Implemented Interfaces:
io.netty.channel.ChannelConfig
,DrasylServerChannelConfig
public class RustDrasylServerChannelConfig
extends io.netty.channel.DefaultChannelConfig
implements DrasylServerChannelConfig
The
ChannelConfig
for RustDrasylServerChannel
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.netty.channel.ChannelOption<Boolean>
static final Map<IdentityPublicKey,
InetSocketAddress> static final io.netty.channel.ChannelOption<String>
static final io.netty.channel.ChannelOption<Duration>
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<Long>
static final io.netty.channel.ChannelOption<Byte>
static final io.netty.channel.ChannelOption<Integer>
static final io.netty.channel.ChannelOption<Boolean>
static final io.netty.channel.ChannelOption<io.netty.channel.WriteBufferWaterMark>
static final io.netty.channel.ChannelOption<Long>
static final io.netty.channel.ChannelOption<Map<IdentityPublicKey,
InetSocketAddress>> static final io.netty.channel.ChannelOption<Integer>
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
getOption
(io.netty.channel.ChannelOption<T> option) void
setHelloMaxAge
(Duration helloMaxAge) void
setHelloTimeout
(Duration helloTimeout) <T> boolean
setOption
(io.netty.channel.ChannelOption<T> option, T value) void
setSuperPeers
(Map<IdentityPublicKey, InetSocketAddress> superPeers) void
setUdpPort
(Integer udpPort) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setMessageSizeEstimator, setOptions, setRecvByteBufAllocator, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount
-
Field Details
-
DEFAULT_SUPER_PEERS
-
NETWORK_ID
-
UDP_PORT
-
ARM_MESSAGES
-
MAX_PEERS
-
MIN_POW_DIFFICULTY
-
HELLO_TIMEOUT
-
HELLO_MAX_AGE
-
SUPER_PEERS
public static final io.netty.channel.ChannelOption<Map<IdentityPublicKey,InetSocketAddress>> SUPER_PEERS -
RECV_BUF_CAP
-
PROCESS_UNITES
-
HELLO_ENDPOINTS
-
HOUSEKEEPING_DELAY
-
INTRA_VM_DISCOVERY_ENABLED
-
READ_BUFFER_WATER_MARK
public static final io.netty.channel.ChannelOption<io.netty.channel.WriteBufferWaterMark> READ_BUFFER_WATER_MARK
-
-
Constructor Details
-
RustDrasylServerChannelConfig
public RustDrasylServerChannelConfig(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
-
getUdpPort
-
isArmMessages
-
getMaxPeers
-
getMinPowDifficulty
-
getHelloTimeout
-
getHelloMaxAge
-
getSuperPeers
- Specified by:
getSuperPeers
in interfaceDrasylServerChannelConfig
-
getRecvBufCap
-
isProcessUnites
-
getHelloEndpoints
-
getHousekeepingDelay
-
isIntraVmDiscoveryEnabled
-
getReadBufferWaterMark
- Specified by:
getReadBufferWaterMark
in interfaceDrasylServerChannelConfig
-
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
-
setUdpPort
-
setHelloTimeout
-
setHelloMaxAge
-
setSuperPeers
-