Class PcapProConfigurator<T extends PcapProConfigurator<T>>

java.lang.Object
com.slytechs.jnet.jnetpcap.PcapProConfigurator<T>
Type Parameters:
T - the generic type
Direct Known Subclasses:
IpfReassembler, PacketDelay, PacketPlayer, PacketRepeater

public class PcapProConfigurator<T extends PcapProConfigurator<T>> extends Object
Base class for all packet processors.
Author:
Sly Technologies Inc, repos@slytechs.com
  • Method Details

    • enable

      public final T enable(boolean enable)
      Enable.
      Parameters:
      enable - the enable
      Returns:
      the t
    • enableIf

      public final T enableIf(BooleanSupplier predicate)
      Enable if.
      Parameters:
      predicate - the predicate
      Returns:
      the t
    • isEnabled

      public final boolean isEnabled()
      Checks if is enabled.
      Returns:
      true, if is enabled
    • getPcapContext

      public final NetPcap.PcapProContext getPcapContext()
      Gets the pcap context.
      Returns:
      the pcap context