Class EsRejectedExecutionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class EsRejectedExecutionException
    extends java.util.concurrent.RejectedExecutionException
    See Also:
    Serialized Form
    • Method Summary

      Modifier and Type Method Description
      boolean isExecutorShutdown()
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EsRejectedExecutionException

        public EsRejectedExecutionException​(java.lang.String message,
                                            boolean isExecutorShutdown)
      • EsRejectedExecutionException

        public EsRejectedExecutionException​(java.lang.String message)
      • EsRejectedExecutionException

        public EsRejectedExecutionException()
    • Method Detail

      • 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.