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 final int
     
    static final int
     

    Fields inherited from class io.netty.channel.DefaultChannelConfig

    channel
  • Constructor Summary

    Constructors
    Constructor
    Description
    PcapChannelConfig(io.netty.channel.Channel channel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    getMacBasedFilterString(SocketAddress localAddress, SocketAddress remoteAddress)
     
    getMacBasedFilterString(org.pcap4j.util.MacAddress localMacAddress, org.pcap4j.util.MacAddress remoteMacAddress)
     
    Map<io.netty.channel.ChannelOption<?>,Object>
     
     
    int
     
    int
     
    boolean
     
    boolean
     
    <T> boolean
    setOption(io.netty.channel.ChannelOption<T> option, T value)
     
    void
     
    void
    setPort(int port)
     
    void
    setProtocolId(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 Details

  • Constructor Details

    • PcapChannelConfig

      public PcapChannelConfig(io.netty.channel.Channel channel)
  • Method Details

    • clone

      public PcapChannelConfig clone()
      Overrides:
      clone in class Object
    • getOptions

      public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
      Specified by:
      getOptions in interface io.netty.channel.ChannelConfig
      Overrides:
      getOptions in class io.netty.channel.DefaultChannelConfig
    • setOption

      public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)
      Specified by:
      setOption in interface io.netty.channel.ChannelConfig
      Overrides:
      setOption in class io.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()
    • isResolveMacAddress

      public boolean isResolveMacAddress()
    • getMacBasedFilterString

      public String getMacBasedFilterString(org.pcap4j.util.MacAddress localMacAddress, org.pcap4j.util.MacAddress remoteMacAddress)
    • getMacBasedFilterString

      public String getMacBasedFilterString(SocketAddress localAddress, SocketAddress remoteAddress)