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

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

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

Processing context state.


Enum Constant Summary
CANCELLED
          Indicates the processing running in the processing context has been canceled.
RESUMED
          Indicates the processing running in the processing context has been resumed.
RUNNING
          Indicates the processing context is running.
SUSPENDED
          Indicates the processing running in the processing context has been suspended.
 
Method Summary
static ProcessingContext.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ProcessingContext.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 ProcessingContext.State RUNNING
Indicates the processing context is running. This is a default state the processing context is in case the processing execution flow has not been explicitly modified (yet).


CANCELLED

public static final ProcessingContext.State CANCELLED
Indicates the processing running in the processing context has been canceled.


SUSPENDED

public static final ProcessingContext.State SUSPENDED
Indicates the processing running in the processing context has been suspended.

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

RESUMED

public static final ProcessingContext.State RESUMED
Indicates the processing running in the processing context has been resumed.

See Also:
ExecutionContext.resume(Object), ExecutionContext.resume(Throwable)
Method Detail

values

public static ProcessingContext.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 (ProcessingContext.State c : ProcessingContext.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 ProcessingContext.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.