Class PcapChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- org.apache.plc4x.java.utils.pcap.netty.config.PcapChannelConfig
-
- All Implemented Interfaces:
io.netty.channel.ChannelConfig
public class PcapChannelConfig extends io.netty.channel.DefaultChannelConfig implements io.netty.channel.ChannelConfig
-
-
Field Summary
Fields Modifier and Type Field Description static intALL_PORTSstatic intALL_PROTOCOLS
-
Constructor Summary
Constructors Constructor Description PcapChannelConfig(io.netty.channel.Channel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PcapChannelConfigclone()StringgetFilterString(SocketAddress localAddress, SocketAddress remoteAddress)Map<io.netty.channel.ChannelOption<?>,Object>getOptions()PacketHandlergetPacketHandler()intgetPort()intgetProtocolId()booleanisSupportVlans()<T> booleansetOption(io.netty.channel.ChannelOption<T> option, T value)voidsetPacketHandler(PacketHandler packetHandler)voidsetPort(int port)voidsetProtocolId(int protocolId)-
Methods inherited from class io.netty.channel.DefaultChannelConfig
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOption, 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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOption, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setMessageSizeEstimator, setOptions, setRecvByteBufAllocator, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount
-
-
-
-
Field Detail
-
ALL_PROTOCOLS
public static final int ALL_PROTOCOLS
- See Also:
- Constant Field Values
-
ALL_PORTS
public static final int ALL_PORTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public PcapChannelConfig clone()
-
getOptions
public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
- Specified by:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classio.netty.channel.DefaultChannelConfig
-
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
-
isSupportVlans
public boolean isSupportVlans()
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
getProtocolId
public int getProtocolId()
-
setProtocolId
public void setProtocolId(int protocolId)
-
setPacketHandler
public void setPacketHandler(PacketHandler packetHandler)
-
getPacketHandler
public PacketHandler getPacketHandler()
-
getFilterString
public String getFilterString(SocketAddress localAddress, SocketAddress remoteAddress)
-
-