| Constructor and Description |
|---|
DiscardOldestPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
reject(E e,
java.util.Queue<E> queue)
Method that may be invoked by a
MemorySafeLinkedBlockingQueue when
MemorySafeLinkedBlockingQueue.hasRemainedMemory() return true. |
public void reject(E e, java.util.Queue<E> queue)
RejectorMemorySafeLinkedBlockingQueue when
MemorySafeLinkedBlockingQueue.hasRemainedMemory() return true.
This may occur when no more memory are available because their bounds would be exceeded.
In the absence of other alternatives, the method may throw an unchecked
RejectException, which will be propagated to the caller.
Copyright © 2024 The Apache Software Foundation. All rights reserved.