QueuePolicyOption provides a standard set of simple
QueuePolicy implementations.
QueuePolicy
| Modifier and Type | Field and Description |
|---|---|
| public static final QueuePolicyOption | BLOCK
Attempt to add the supplied event to the queue, blocking until the enqueue is successful. |
| public static final QueuePolicyOption | DISCARD_OLDEST
Attempt to add the supplied event to the queue. |
| public static final QueuePolicyOption | FAIL
Attempt to add the supplied event to the queue, throwing an exception if the queue is full. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public abstract <T, U extends BlockingQueue | |
| public static QueuePolicyOption | |
| public static QueuePolicyOption[] |
| BLOCK | back to summary |
|---|---|
| public static final QueuePolicyOption BLOCK Attempt to add the supplied event to the queue, blocking until the enqueue is successful. | |
| DISCARD_OLDEST | back to summary |
|---|---|
| public static final QueuePolicyOption DISCARD_OLDEST Attempt to add the supplied event to the queue. If the queue is unable to immediately accept the value then discard the value at the head of the queue and try again. Repeat this process until the event is enqueued. | |
| FAIL | back to summary |
|---|---|
| public static final QueuePolicyOption FAIL Attempt to add the supplied event to the queue, throwing an exception if the queue is full. | |
| QueuePolicyOption | back to summary |
|---|---|
| private QueuePolicyOption() | |
| getPolicy | back to summary |
|---|---|
public abstract <T, U extends BlockingQueue
| |
| valueOf | back to summary |
|---|---|
| public static QueuePolicyOption valueOf(String name) | |
| values | back to summary |
|---|---|
| public static QueuePolicyOption[] values() | |