Exception
.ExecutorService
which executes tasks as daemon
threads; the Executors.newCachedThreadPool()
is being used to do
so.ExecutorService
retrieved from the
Executors
.ExceptionWatchdog
allows any number of threads to wait (sleep)
when calling #onException()
till the ExceptionWatchdog
is fed
with a next Exception
with ExceptionWatchdog.throwException(Exception)
or till
all waiting threads are released by calling Releaseable.releaseAll()
.ExecutionStrategy
property.ExecutionStrategy
property.ExecutionStrategy
property.ExecutorService
property.ExecutorService
property
returning the builder for applying multiple build operations.ExecutorService
property.ExecutorService
property.ExecutorService
from the ExecutorService
property.Retryable.nextRetry()
).RetryTimeout
is waiting while
iterating through the RetryTimeout
via Retryable.hasNextRetry()
and Retryable.nextRetry()
.Future
instances contained in the given
Collection
.Future
instances contained in the given
Collection
.Thread
instances contained in the given
Collection
.Thread
instances contained in the given
Collection
.ExceptionWatchdog.throwException(Exception)
.ExecutorService
instances originating from an application
server are wrapped with this ManagedExecutorService
.Retryable
provides methods for performing various retry
iterations, be it based on retry counts or retry timeouts.RetryCounter
can be used in loops to test whether a retry should
take place and in case a retry is to take place, then a given period of time
(delay) is waited and the internal retry counter is decremented.RetryCounter
interface.RetryTimeout
can be used in loops to test whether a timeout has
been reached, if the timeout has not been reached, then a given period of
time (delay) is waited.RetryTimeout
interface.RetryTimeoutImpl
with the given timeout and the
given retry delay.RetryTimeoutImpl
with the given timeout and the
given number of retry loops.ExecutorService
for the ExecutorService
property.ExecutorService.shutdown()
) all tasks
of an ExecutorService
, after a timeout of
IoRetryCount.NORM
milliseconds,
shutdown is forced as of ExecutorService.shutdownNow()
.
-------------------------------------------------------------------------
CAUTION: Do only invoke this methods on ExecutorService
instances
you manage exclusively yourself, do not apply this method on
ExecutorService
instances provided to you by your application
server (e.g. an JEE server)ExecutorService.shutdown()
) all tasks
of an ExecutorService
, after a given timeout in milliseconds,
shutdown is forced as of ExecutorService.shutdownNow()
.ThreadFactoryImpl
with the given attributes.ThreadFactoryImpl
with the given attributes.ThreadFactoryImpl
with the given attributes.ExceptionWatchdog
notifying all
awaiting threads inside the #onException()
method to be provided
with that Exception
.IllegalStateException
in case an illegal state false
is being provided.ExecutorService
to be a
ManagedExecutorService
with methods
ExecutorService.shutdown()
and
ExecutorService.shutdownNow()
being disabled as them are to be
managed by an application server.Future
instances contained in the given
Collection
.Future
instances contained in the given
Collection
.ExecutorService
for the ExecutorService
property.Copyright © 2017. All rights reserved.