Package com.zeroc.Ice.Instrumentation
Enum Class ThreadState
- All Implemented Interfaces:
Serializable
,Comparable<ThreadState>
,Constable
The thread state enumeration keeps track of the different possible
states of Ice threads.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe thread is idle.The thread is in use performing reads or writes for Ice connections.The thread is performing other internal activities (DNS lookups, timer callbacks, etc).The thread is calling user code (servant implementation, AMI callbacks). -
Method Summary
Modifier and TypeMethodDescriptionint
value()
static ThreadState
valueOf
(int v) Returns the enum constant of this class with the specified name.static ThreadState
Returns the enum constant of this class with the specified name.static ThreadState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ThreadStateIdle
The thread is idle. -
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
The thread is calling user code (servant implementation, AMI callbacks). This state is only for threads from an Ice thread pool. -
ThreadStateInUseForOther
The thread is performing other internal activities (DNS lookups, timer callbacks, etc).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
value
public int value() -
valueOf
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 nameNullPointerException
- if the argument is null
-