Package org.jivesoftware.smack.util
Enum ArrayBlockingQueueWithShutdown.TryPutResult
java.lang.Object
java.lang.Enum<ArrayBlockingQueueWithShutdown.TryPutResult>
org.jivesoftware.smack.util.ArrayBlockingQueueWithShutdown.TryPutResult
- All Implemented Interfaces:
Serializable
,Comparable<ArrayBlockingQueueWithShutdown.TryPutResult>
- Enclosing class:
- ArrayBlockingQueueWithShutdown<E>
public static enum ArrayBlockingQueueWithShutdown.TryPutResult
extends Enum<ArrayBlockingQueueWithShutdown.TryPutResult>
-
Enum Constant Summary
Enum ConstantDescriptionThe method was unable to acquire the queue lock.The element was successfully placed into the queue.The method was unable to put another element into the queue because the queue was full.The queue was shut down. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
couldNotLock
The method was unable to acquire the queue lock. -
queueWasShutDown
The queue was shut down. -
queueWasFull
The method was unable to put another element into the queue because the queue was full. -
putSuccessful
The element was successfully placed into the queue.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-