Class DiscardPolicy<E>
- java.lang.Object
-
- org.apache.shenyu.common.concurrent.DiscardPolicy<E>
-
-
Constructor Summary
Constructors Constructor Description DiscardPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreject(E e, java.util.Queue<E> queue)Method that may be invoked by aMemorySafeLinkedBlockingQueuewhenMemorySafeLinkedBlockingQueue.hasRemainedMemory()return true.
-
-
-
Method Detail
-
reject
public void reject(E e, java.util.Queue<E> queue)
Description copied from interface:RejectorMethod that may be invoked by aMemorySafeLinkedBlockingQueuewhenMemorySafeLinkedBlockingQueue.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.
-
-