JBoss Threads 2.0.0.GA-redhat-2

org.jboss.threads
Enum AsyncFuture.Status

java.lang.Object
  extended by java.lang.Enum<AsyncFuture.Status>
      extended by org.jboss.threads.AsyncFuture.Status
All Implemented Interfaces:
Serializable, Comparable<AsyncFuture.Status>
Enclosing interface:
AsyncFuture<T>

public static enum AsyncFuture.Status
extends Enum<AsyncFuture.Status>

The possible statuses of an AsyncFuture.


Enum Constant Summary
CANCELLED
          The operation was cancelled before it completed.
COMPLETE
          The operation has completed successfully.
FAILED
          The operation has failed with some exception.
WAITING
          The operation is still in progress.
 
Method Summary
static AsyncFuture.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AsyncFuture.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

WAITING

public static final AsyncFuture.Status WAITING
The operation is still in progress.


COMPLETE

public static final AsyncFuture.Status COMPLETE
The operation has completed successfully.


CANCELLED

public static final AsyncFuture.Status CANCELLED
The operation was cancelled before it completed.


FAILED

public static final AsyncFuture.Status FAILED
The operation has failed with some exception.

Method Detail

values

public static AsyncFuture.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 (AsyncFuture.Status c : AsyncFuture.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 AsyncFuture.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

JBoss Threads 2.0.0.GA-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.