Enum PortManager.PortRef.CloseOption

java.lang.Object
java.lang.Enum<PortManager.PortRef.CloseOption>
org.terracotta.utilities.test.net.PortManager.PortRef.CloseOption
All Implemented Interfaces:
Serializable, Comparable<PortManager.PortRef.CloseOption>, java.lang.constant.Constable
Enclosing class:
PortManager.PortRef

public static enum PortManager.PortRef.CloseOption extends Enum<PortManager.PortRef.CloseOption>
Options that may be used with PortManager.PortRef.close(Set).
  • Enum Constant Details

    • NO_RELEASE_CHECK

      public static final PortManager.PortRef.CloseOption NO_RELEASE_CHECK
      Indicates that no busy check should be performed when closing the PortRef and releasing a port. This option should be used only when it is known that the port has not been used and cannot be busy.
  • Constructor Details

    • CloseOption

      private CloseOption()
  • Method Details

    • values

      public static PortManager.PortRef.CloseOption[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PortManager.PortRef.CloseOption 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