public static enum ArrayBlockingQueueWithShutdown.TryPutResult extends Enum<ArrayBlockingQueueWithShutdown.TryPutResult>
Enum Constant and Description |
---|
couldNotLock
The method was unable to acquire the queue lock.
|
putSuccessful
The element was successfully placed into the queue.
|
queueWasFull
The method was unable to put another element into the queue because the queue was full.
|
queueWasShutDown
The queue was shut down.
|
Modifier and Type | Method and Description |
---|---|
static ArrayBlockingQueueWithShutdown.TryPutResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArrayBlockingQueueWithShutdown.TryPutResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArrayBlockingQueueWithShutdown.TryPutResult couldNotLock
public static final ArrayBlockingQueueWithShutdown.TryPutResult queueWasShutDown
public static final ArrayBlockingQueueWithShutdown.TryPutResult queueWasFull
public static final ArrayBlockingQueueWithShutdown.TryPutResult putSuccessful
public static ArrayBlockingQueueWithShutdown.TryPutResult[] values()
for (ArrayBlockingQueueWithShutdown.TryPutResult c : ArrayBlockingQueueWithShutdown.TryPutResult.values()) System.out.println(c);
public static ArrayBlockingQueueWithShutdown.TryPutResult 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