public interface Rejector<E>
AbortPolicy,
DiscardPolicy,
DiscardOldestPolicy| Modifier and Type | Method and Description |
|---|---|
void |
reject(E e,
Queue<E> queue)
Method that may be invoked by a Queue when Queue has remained memory
return true.
|
void reject(E e, Queue<E> queue)
In the absence of other alternatives, the method may throw an unchecked
RejectException, which will be propagated to the caller.
e - the element requested to be addedqueue - the queue attempting to add this elementRejectException - if there is no more memoryCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.