Enum CaptureMode

    • Enum Constant Detail

      • DEFAULT

        public static final CaptureMode DEFAULT
        The default capture mode defined by the environment
      • IPTABLES

        public static final CaptureMode IPTABLES
        Capture traffic using IPtables redirection
      • NONE

        public static final CaptureMode NONE
        No traffic capture. When used in egress listener, the application is expected to explicitly communicate with the listener port/unix domain socket. When used in ingress listener, care needs to be taken to ensure that the listener port is not in use by other processes on the host.
    • Method Detail

      • values

        public static CaptureMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CaptureMode c : CaptureMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CaptureMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public int value()