Class 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 int ALL_PORTS  
      static int ALL_PROTOCOLS  
      • Fields inherited from class io.netty.channel.DefaultChannelConfig

        channel
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PcapChannelConfig clone()  
      String getFilterString​(SocketAddress localAddress, SocketAddress remoteAddress)  
      Map<io.netty.channel.ChannelOption<?>,​Object> getOptions()  
      PacketHandler getPacketHandler()  
      int getPort()  
      int getProtocolId()  
      boolean isSupportVlans()  
      <T> boolean setOption​(io.netty.channel.ChannelOption<T> option, T value)  
      void setPacketHandler​(PacketHandler packetHandler)  
      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 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
    • Constructor Detail

      • PcapChannelConfig

        public PcapChannelConfig​(io.netty.channel.Channel channel)
    • Method Detail

      • 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)