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 RustDrasylServerChannels.-
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> TgetOption(io.netty.channel.ChannelOption<T> option) voidsetHelloMaxAge(Duration helloMaxAge) voidsetHelloTimeout(Duration helloTimeout) <T> booleansetOption(io.netty.channel.ChannelOption<T> option, T value) voidsetSuperPeers(Map<IdentityPublicKey, InetSocketAddress> superPeers) voidsetUdpPort(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, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classio.netty.channel.DefaultChannelConfig
-
getOption
public <T> T getOption(io.netty.channel.ChannelOption<T> option) - Specified by:
getOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionin classio.netty.channel.DefaultChannelConfig
-
getNetworkId
-
getUdpPort
-
isArmMessages
-
getMaxPeers
-
getMinPowDifficulty
-
getHelloTimeout
-
getHelloMaxAge
-
getSuperPeers
- Specified by:
getSuperPeersin interfaceDrasylServerChannelConfig
-
getRecvBufCap
-
isProcessUnites
-
getHelloEndpoints
-
getHousekeepingDelay
-
isIntraVmDiscoveryEnabled
-
getReadBufferWaterMark
- Specified by:
getReadBufferWaterMarkin interfaceDrasylServerChannelConfig
-
setOption
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value) - Specified by:
setOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
setOptionin classio.netty.channel.DefaultChannelConfig
-
setUdpPort
-
setHelloTimeout
-
setHelloMaxAge
-
setSuperPeers
-