public static enum ArrayBlockingQueueWithShutdown.TryTakeResultCode extends Enum<ArrayBlockingQueueWithShutdown.TryTakeResultCode>
Enum Constant and Description |
---|
couldNotLock
The method was unable to acquire the queue lock.
|
queueWasEmpty
The queue was empty.
|
queueWasShutDown
The queue was shut down.
|
takeSuccessful
An element was successfully removed from the queue.
|
Modifier and Type | Method and Description |
---|---|
static ArrayBlockingQueueWithShutdown.TryTakeResultCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArrayBlockingQueueWithShutdown.TryTakeResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArrayBlockingQueueWithShutdown.TryTakeResultCode couldNotLock
public static final ArrayBlockingQueueWithShutdown.TryTakeResultCode queueWasShutDown
public static final ArrayBlockingQueueWithShutdown.TryTakeResultCode queueWasEmpty
public static final ArrayBlockingQueueWithShutdown.TryTakeResultCode takeSuccessful
public static ArrayBlockingQueueWithShutdown.TryTakeResultCode[] values()
for (ArrayBlockingQueueWithShutdown.TryTakeResultCode c : ArrayBlockingQueueWithShutdown.TryTakeResultCode.values()) System.out.println(c);
public static ArrayBlockingQueueWithShutdown.TryTakeResultCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null