Module org.refcodes.controlflow
Package org.refcodes.controlflow
package org.refcodes.controlflow
-
ClassDescriptionThe
AbstractInterceptorComposite
provides base functionality for working withInterceptor
instances.AAssemblyInterceptor
assembles a work piece object whilst the work piece is passed to the nextAssemblyInterceptor
in the assembly line till allAssemblyInterceptor
in the assembly line were invoked.ThisAssemblyInterceptorComposite
passes the work piece from oneAssemblyInterceptor
instance to the next in the order in which them were added (passed).AnAssemblyInterceptor
assembles a work piece object whilst the work piece is passed to the nextAssemblyInterceptor
in the assembly line till allAssemblyInterceptor
in the assembly line were invoked.Utility class addressing control flow related issues.Coupler.Operation<SUBJECT,PARAM extends Coupler, RET> Definition of a method with single argument of typeCoupler
.ADelegationInterceptor
processes a work piece object in case it is responsible for the work piece, else the work piece is passed to the next (subsequent)DelegationInterceptor
instance.ThisDelegationInterceptorComposite
passes the work piece from oneDelegationInterceptor
instance to the next in the order in which them were added (passed).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.TheInterceptable
provides base functionality for working withInterceptor
instances.Interceptor<WP,R> AnInterceptor
definition to manufacture a work piece object.TheInterceptorComposite
is anInterceptor
aggregating childInterceptor
instances for delegation whilst behaving like anInterceptor
instance..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.Provides an accessor for a work piece property.Provides a mutator for a work piece property.Provides a work piece property.