Package org.drasyl.channel.tun
Class DefaultTunChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- org.drasyl.channel.tun.DefaultTunChannelConfig
-
- All Implemented Interfaces:
io.netty.channel.ChannelConfig
,TunChannelConfig
public class DefaultTunChannelConfig extends io.netty.channel.DefaultChannelConfig implements TunChannelConfig
The defaultTunChannelConfig
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultTunChannelConfig(TunChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMtu()
Gets theTunChannelOption.TUN_MTU
option.<T> T
getOption(io.netty.channel.ChannelOption<T> option)
TunChannelConfig
setMtu(int mtu)
Sets theTunChannelOption.TUN_MTU
option.<T> boolean
setOption(io.netty.channel.ChannelOption<T> option, T value)
-
Methods inherited from class io.netty.channel.DefaultChannelConfig
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, 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, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setMessageSizeEstimator, setOptions, setRecvByteBufAllocator, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount
-
-
-
-
Constructor Detail
-
DefaultTunChannelConfig
public DefaultTunChannelConfig(TunChannel channel)
-
-
Method Detail
-
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
-
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
-
getMtu
public int getMtu()
Description copied from interface:TunChannelConfig
Gets theTunChannelOption.TUN_MTU
option.- Specified by:
getMtu
in interfaceTunChannelConfig
-
setMtu
public TunChannelConfig setMtu(int mtu)
Description copied from interface:TunChannelConfig
Sets theTunChannelOption.TUN_MTU
option.- Specified by:
setMtu
in interfaceTunChannelConfig
-
-