Enum Class ThreadState

java.lang.Object
java.lang.Enum<ThreadState>
com.zeroc.Ice.Instrumentation.ThreadState
All Implemented Interfaces:
Serializable, Comparable<ThreadState>, Constable

public enum ThreadState extends Enum<ThreadState>
The thread state enumeration keeps track of the different possible states of Ice threads.
  • Enum Constant Details

    • ThreadStateIdle

      public static final ThreadState ThreadStateIdle
      The thread is idle.
    • ThreadStateInUseForIO

      public static final ThreadState ThreadStateInUseForIO
      The thread is in use performing reads or writes for Ice connections. This state is only for threads from an Ice thread pool.
    • ThreadStateInUseForUser

      public static final ThreadState ThreadStateInUseForUser
      The thread is calling user code (servant implementation, AMI callbacks). This state is only for threads from an Ice thread pool.
    • ThreadStateInUseForOther

      public static final ThreadState ThreadStateInUseForOther
      The thread is performing other internal activities (DNS lookups, timer callbacks, etc).
  • Method Details

    • values

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

      public static ThreadState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public int value()
    • valueOf

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