Module org.refcodes.controlflow
Package org.refcodes.controlflow
package org.refcodes.controlflow
-
ClassDescriptionUtility class addressing control flow related issues.Coupler.Operation<SUBJECT,
PARAM extends Coupler, RET> Definition of a method with single argument of typeCoupler
.ExceptionWatchdog<E extends Exception>The Enum ExecutionStrategy.Provides an accessor for anExecutionStrategy
property.Provides a mutator for anExecutionStrategy
property.Provides anExecutionStrategy
property.Provides an accessor for aExecutorService
property.ExecutorServiceAccessor.ExecutorServiceBuilder<B extends ExecutorServiceAccessor.ExecutorServiceBuilder<B>>Provides a builder method for aExecutorService
property returning the builder for applying multiple build operations.Provides a mutator for aExecutorService
property.Provides aExecutorService
property.The Enum InvocationStrategy.UsuallyExecutorService
instances originating from an application server are wrapped with thisManagedExecutorService
.TheRetryable
provides methods for performing various retry iterations, be it based on retry counts or retry timeouts.TheRetryCounter
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.TheRetryTimeout
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.Verbose readable threading model.Verbose readable thread mode.