Package com.github.javinator9889.threading.pools.rejectedhandlers
-
Class Summary Class Description DefaultRejectedExecutionHandler Default rejected execution handler that always throwsNoRejectedHandlerError
, with a message containing useful information: Queue size for explaining why it has been rejected.ImmediatelyRunOnRejectedExecutionHandler Rejected execution handler that immediately runs the rejected thread - this handler is not recommended if you need to message between threads and/or there are common dependencies.NoRejectedExecutionHandler Handler that does nothing when a thread is rejected - this handler is not recommended to be used as you will lose information (threads that are not execute will disappear).RunWhenTasksFinishedOnRejectedHandler This handler waits until all running threads and pending ones are executed, then runs the rejectedRunnable
on theThreadsPooling
thread.