Class DiscardOldestPolicy<E>
java.lang.Object
org.apache.dubbo.common.concurrent.DiscardOldestPolicy<E>
- All Implemented Interfaces:
Rejector<E>
A handler for rejected element that discards the oldest element.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DiscardOldestPolicy
public DiscardOldestPolicy()
-
-
Method Details
-
reject
Description copied from interface:RejectorMethod that may be invoked by a Queue when Queue has remained memory 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.
-