Class ThreadPool.RejectionHandler

    • Constructor Detail

      • RejectionHandler

        public RejectionHandler()
    • Method Detail

      • getRejectionCount

        public int getRejectionCount()
        Returns the number of rejections.
        Returns:
        the count.
      • throwException

        protected void throwException​(ThreadPoolExecutor executor)
        Throws an exception.
        Parameters:
        executor - The executor that is rejecting the task.