Class OpenSearchRejectedExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.concurrent.RejectedExecutionException
org.opensearch.common.util.concurrent.OpenSearchRejectedExecutionException
- All Implemented Interfaces:
Serializable
Thrown when an execution is rejected
- See Also:
- Opensearch.internal:
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchRejectedExecutionException
(String message, boolean isExecutorShutdown) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the thread pool that rejected the execution was terminated shortly after the rejection.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OpenSearchRejectedExecutionException
-
OpenSearchRejectedExecutionException
-
OpenSearchRejectedExecutionException
public OpenSearchRejectedExecutionException()
-
-
Method Details
-
isExecutorShutdown
public boolean isExecutorShutdown()Checks if the thread pool that rejected the execution was terminated shortly after the rejection. Its possible that this returns false and the thread pool has since been terminated but if this returns false then the termination wasn't a factor in this rejection. Conversely if this returns true the shutdown was probably a factor in this rejection but might have been triggered just after the action rejection.
-