org.glassfish.jersey.process.internal
Enum RequestInvoker.InvocationContext.Status

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

public static enum RequestInvoker.InvocationContext.Status
extends Enum<RequestInvoker.InvocationContext.Status>

Invocation context status.


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 RequestInvoker.InvocationContext.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RequestInvoker.InvocationContext.Status[] 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 RequestInvoker.InvocationContext.Status 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 RequestInvoker.InvocationContext.Status CANCELLED
Indicates the invocation running in the invocation context has been canceled.


SUSPENDED

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

See Also:
RequestInvoker.InvocationContext.suspend(), RequestInvoker.InvocationContext.suspend(long), RequestInvoker.InvocationContext.suspend(long, TimeUnit)

RESUMED

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

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

values

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

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

valueOf

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


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