org.glassfish.jersey.process.internal
Enum InvocationContext.State

java.lang.Object
  extended by java.lang.Enum<InvocationContext.State>
      extended by org.glassfish.jersey.process.internal.InvocationContext.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<InvocationContext.State>
Enclosing interface:
InvocationContext

public static enum InvocationContext.State
extends java.lang.Enum<InvocationContext.State>

Invocation context state.


Enum Constant Summary
CANCELLED
          Indicates the invocation running in the invocation context has been canceled.
RESUMED
          Indicates the invocation running in the invocation context has been resumed.
RUNNING
          Indicates the invocation context is running.
SUSPENDED
          Indicates the invocation running in the invocation context has been suspended.
 
Method Summary
static InvocationContext.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static InvocationContext.State[] 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

RUNNING

public static final InvocationContext.State RUNNING
Indicates the invocation context is running. This is a default state the invocation context is in case the invocation execution flow has not been explicitly modified (yet).


CANCELLED

public static final InvocationContext.State CANCELLED
Indicates the invocation running in the invocation context has been canceled.


SUSPENDED

public static final InvocationContext.State SUSPENDED
Indicates the invocation running in the invocation context has been suspended.

See Also:
ExecutionContext.suspend(), ExecutionContext.suspend(long), ExecutionContext.suspend(long, TimeUnit)

RESUMED

public static final InvocationContext.State RESUMED
Indicates the invocation running in the invocation context has been resumed.

See Also:
InvocationContext#resume(Response), InvocationContext#resume(Throwable)
Method Detail

values

public static InvocationContext.State[] 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 (InvocationContext.State c : InvocationContext.State.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static InvocationContext.State valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.