Class OpenSearchAbortPolicy
java.lang.Object
org.opensearch.common.util.concurrent.OpenSearchAbortPolicy
- All Implemented Interfaces:
java.util.concurrent.RejectedExecutionHandler
,XRejectedExecutionHandler
public class OpenSearchAbortPolicy extends java.lang.Object implements XRejectedExecutionHandler
-
Constructor Summary
Constructors Constructor Description OpenSearchAbortPolicy()
-
Method Summary
Modifier and Type Method Description long
rejected()
The number of rejected executions.void
rejectedExecution(java.lang.Runnable r, java.util.concurrent.ThreadPoolExecutor executor)
-
Constructor Details
-
OpenSearchAbortPolicy
public OpenSearchAbortPolicy()
-
-
Method Details
-
rejectedExecution
public void rejectedExecution(java.lang.Runnable r, java.util.concurrent.ThreadPoolExecutor executor)- Specified by:
rejectedExecution
in interfacejava.util.concurrent.RejectedExecutionHandler
-
rejected
public long rejected()Description copied from interface:XRejectedExecutionHandler
The number of rejected executions.- Specified by:
rejected
in interfaceXRejectedExecutionHandler
-