|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CallState>
org.curjent.agent.CallState
public enum CallState
Execution state of a call. Calls transition through a set of well-defined
states in a well-defined order. All calls start in the STARTING
state and finish in the FINISHED
state. In the nominal case, the
case for most calls, a call transitions from STARTING
to
ACCEPTED
to EXECUTING
to FINISHED
. A
call can transition to the FINISHED
state from any other state
due to an error, cancellation, etc. See the documentation for individual
states for exceptions.
Enum Constant Summary | |
---|---|
ACCEPTED
Call is queued and ready to run as soon as a task is available to execute it. |
|
EXECUTING
An agent's task is executing the call. |
|
FINISHED
The call has finished, normally or otherwise. |
|
PENDING
Call is pending acceptance by the agent. |
|
STARTING
Call is initialized and ready for queing and execution. |
Method Summary | |
---|---|
static CallState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CallState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CallState STARTING
Calls can transition from the STARTING
state to any other
state.
public static final CallState PENDING
Calls can transition from the PENDING
state to
ACCEPTED
or FINISHED
.
Capacity
public static final CallState ACCEPTED
ACCEPTED
state before they
transition to the EXECUTING
state. The one exception is a
reentrant call which is not queued and therefore transitions directly
from STARTING
to EXECUTING
(see
Reentrant
).
Calls can transition from the ACCEPTED
state to
EXECUTING
or FINISHED
.
public static final CallState EXECUTING
EXECUTING
, notifies the EXECUTING
CallStateListener
if present, calls the task's method, transitions the
call to FINISHED
, and notifies the FINISHED
CallStateListener
if present.
Calls can only transition from the EXECUTING
state to the
FINISHED
state.
public static final CallState FINISHED
CallCompletion
for possible reasons.
Once a call has transitioned to the FINISHED
state, its
state is fixed and can no longer change.
All calls transition to FINISHED
when they're done, and a
call can transition to FINISHED
from any other state.
Method Detail |
---|
public static CallState[] values()
for (CallState c : CallState.values()) System.out.println(c);
public static CallState valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |