Skip navigation links
A C D E G H I J L M N O R S T V W 

A

abort() - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
 
abort() - Method in class org.refcodes.controlflow.impls.RetryTimeoutImpl
 
awaitTermination(long, TimeUnit) - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 

C

catchException() - Method in interface org.refcodes.controlflow.ExceptionWatchdog
This methods awaits an Exception.
catchException() - Method in class org.refcodes.controlflow.impls.ExceptionWatchdogImpl
 
ControlFlowUtility - Class in org.refcodes.controlflow
Utility class addressing control flow related issues.
createDaemonExecutorService() - Static method in class org.refcodes.controlflow.ControlFlowUtility
Creates an ExecutorService which executes tasks as daemon threads; the Executors.newCachedThreadPool() is being used to do so.
createExecutorService() - Static method in class org.refcodes.controlflow.ControlFlowUtility
Returns a default ExecutorService retrieved from the Executors.

D

dispose() - Method in class org.refcodes.controlflow.impls.ExceptionWatchdogImpl
 

E

ExceptionWatchdog<E extends Exception> - Interface in org.refcodes.controlflow
The 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().
ExceptionWatchdogImpl<E extends Exception> - Class in org.refcodes.controlflow.impls
The ExceptionWatchdogImpl implements a plain ExceptionWatchdog not queuing any Exception instances.
ExceptionWatchdogImpl() - Constructor for class org.refcodes.controlflow.impls.ExceptionWatchdogImpl
 
execute(Runnable) - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 
ExecutionStrategy - Enum in org.refcodes.controlflow
 
ExecutionStrategyAccessor - Interface in org.refcodes.controlflow
Provides an accessor for an ExecutionStrategy property.
ExecutionStrategyAccessor.ExecutionStrategyMutator - Interface in org.refcodes.controlflow
Provides a mutator for an ExecutionStrategy property.
ExecutionStrategyAccessor.ExecutionStrategyProperty - Interface in org.refcodes.controlflow
Provides an ExecutionStrategy property.
ExecutorServiceAccessor - Interface in org.refcodes.controlflow
Provides an accessor for a ExecutorService property.
ExecutorServiceAccessor.ExecutorServiceBuilder<B extends ExecutorServiceAccessor.ExecutorServiceBuilder<B>> - Interface in org.refcodes.controlflow
Provides a builder method for a ExecutorService property returning the builder for applying multiple build operations.
ExecutorServiceAccessor.ExecutorServiceMutator - Interface in org.refcodes.controlflow
Provides a mutator for a ExecutorService property.
ExecutorServiceAccessor.ExecutorServiceProperty - Interface in org.refcodes.controlflow
Provides a ExecutorService property.

G

getCurrentRetryDelayInMs() - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
 
getCurrentRetryDelayInMs() - Method in interface org.refcodes.controlflow.RetryCounter
Returns the current delay before each retry to wait in milliseconds.
getExecutionStrategy() - Method in interface org.refcodes.controlflow.ExecutionStrategyAccessor
Retrieves the execution-strategy from the execution-strategy property.
getExecutorService() - Method in interface org.refcodes.controlflow.ExecutorServiceAccessor
Retrieves the ExecutorService from the ExecutorService property.
getExpRetryDelayExtensionInMs() - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
 
getExpRetryDelayExtensionInMs() - Method in interface org.refcodes.controlflow.RetryCounter
Returns the exponential retry delay extension time in milliseconds.
getInitialRetryDelayInMs() - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
 
getInitialRetryDelayInMs() - Method in interface org.refcodes.controlflow.RetryCounter
Returns the initial delay before each retry to wait in milliseconds.
getNextRetryDelayInMs() - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
 
getNextRetryDelayInMs() - Method in interface org.refcodes.controlflow.RetryCounter
Calculates the next retry delay in milliseconds.
getRetryCount() - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
 
getRetryCount() - Method in class org.refcodes.controlflow.impls.RetryTimeoutImpl
 
getRetryCount() - Method in interface org.refcodes.controlflow.Retryable
The current state regarding the retires.
getRetryCount() - Method in interface org.refcodes.controlflow.RetryCounter
The current state regarding the retires.
getRetryDelayInMs() - Method in class org.refcodes.controlflow.impls.RetryTimeoutImpl
 
getRetryDelayInMs() - Method in interface org.refcodes.controlflow.RetryTimeout
Returns retry to wait in milliseconds upon calling Retryable.nextRetry()).
getRetryNumber() - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
 
getRetryNumber() - Method in interface org.refcodes.controlflow.RetryCounter
Returns the number of retires this instance allows altogether.
getTimeoutInMs() - Method in class org.refcodes.controlflow.impls.RetryTimeoutImpl
 
getTimeoutInMs() - Method in interface org.refcodes.controlflow.RetryTimeout
Returns the timeout altogether the RetryTimeout is waiting while iterating through the RetryTimeout via Retryable.hasNextRetry() and Retryable.nextRetry().

H

hasNextRetry() - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
 
hasNextRetry() - Method in class org.refcodes.controlflow.impls.RetryTimeoutImpl
 
hasNextRetry() - Method in interface org.refcodes.controlflow.Retryable
Returns true in case not all retires have been used up.

I

InvocationStrategy - Enum in org.refcodes.controlflow
 
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 
invokeAll(Collection<? extends Callable<T>>) - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 
invokeAny(Collection<? extends Callable<T>>) - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 
isShutdown() - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 
isTerminated() - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 

J

joinFutures(Collection<? extends Future<?>>) - Static method in class org.refcodes.controlflow.ControlFlowUtility
Joins the Future instances contained in the given Collection.
joinFutures(Future<?>...) - Static method in class org.refcodes.controlflow.ControlFlowUtility
Joins the Future instances contained in the given Collection.
joinThreads(Collection<? extends Thread>) - Static method in class org.refcodes.controlflow.ControlFlowUtility
Joins the Thread instances contained in the given Collection.
joinThreads(Thread...) - Static method in class org.refcodes.controlflow.ControlFlowUtility
Joins the Thread instances contained in the given Collection.

L

lastException() - Method in interface org.refcodes.controlflow.ExceptionWatchdog
Returns the last exception which was pushed via ExceptionWatchdog.throwException(Exception).
lastException() - Method in class org.refcodes.controlflow.impls.ExceptionWatchdogImpl
 

M

ManagedExecutorService - Class in org.refcodes.controlflow.impls
Usually ExecutorService instances originating from an application server are wrapped with this ManagedExecutorService.
ManagedExecutorService(ExecutorService) - Constructor for class org.refcodes.controlflow.impls.ManagedExecutorService
 

N

newThread(Runnable) - Method in class org.refcodes.controlflow.ThreadFactoryImpl
 
nextRetry() - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
 
nextRetry() - Method in class org.refcodes.controlflow.impls.RetryTimeoutImpl
 
nextRetry(Object) - Method in class org.refcodes.controlflow.impls.RetryTimeoutImpl
 
nextRetry() - Method in interface org.refcodes.controlflow.Retryable
Tests whether a next retry is possible.
nextRetry() - Method in interface org.refcodes.controlflow.RetryCounter
Tests whether a next retry is possible.
nextRetry(Object) - Method in interface org.refcodes.controlflow.RetryTimeout
Tests whether a next retry is possible.

O

org.refcodes.controlflow - package org.refcodes.controlflow
 
org.refcodes.controlflow.impls - package org.refcodes.controlflow.impls
 

R

releaseAll() - Method in class org.refcodes.controlflow.impls.ExceptionWatchdogImpl
 
restart() - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
 
restart() - Method in class org.refcodes.controlflow.impls.RetryTimeoutImpl
 
Retryable - Interface in org.refcodes.controlflow
The Retryable provides methods for performing various retry iterations, be it based on retry counts or retry timeouts.
RetryCounter - Interface in org.refcodes.controlflow
The 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.
RetryCounterImpl - Class in org.refcodes.controlflow.impls
Implementation of the RetryCounter interface.
RetryCounterImpl(int) - Constructor for class org.refcodes.controlflow.impls.RetryCounterImpl
Constructs a retry retry counter by providing the number of retries with no delay before each retry.
RetryCounterImpl(long, long) - Constructor for class org.refcodes.controlflow.impls.RetryCounterImpl
Constructs a retry timeout counter by providing the total delay time and the delay before each retry.
RetryCounterImpl(int, long) - Constructor for class org.refcodes.controlflow.impls.RetryCounterImpl
Constructs a retry timeout counter by providing the number of retries and the delay before each retry.
RetryCounterImpl(int, long, long) - Constructor for class org.refcodes.controlflow.impls.RetryCounterImpl
Constructs a retry timeout counter by providing the number of retries and the delay before each retry and taking an exponential delay extension into calculation: ------------------------------------------------------------------------- "(getRetryDelayInMs() + (Math.pow( 4, getRetryCount() - 1 ) * getExpRetryDelayExtensionInMs())" ------------------------------------------------------------------------- In case a delay greater than 0 is set, then each retry is being delayed by the according amount of milliseconds, in case no retries are left, then delaying is skipped.
RetryTimeout - Interface in org.refcodes.controlflow
The 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.
RetryTimeoutImpl - Class in org.refcodes.controlflow.impls
Implementation of the RetryTimeout interface.
RetryTimeoutImpl(long, long) - Constructor for class org.refcodes.controlflow.impls.RetryTimeoutImpl
Constructs the RetryTimeoutImpl with the given timeout and the given retry delay.
RetryTimeoutImpl(long, int) - Constructor for class org.refcodes.controlflow.impls.RetryTimeoutImpl
Constructs the RetryTimeoutImpl with the given timeout and the given number of retry loops.

S

setExecutionStrategy(ExecutionStrategy) - Method in interface org.refcodes.controlflow.ExecutionStrategyAccessor.ExecutionStrategyMutator
Sets the execution-strategy for the execution-strategy property.
setExecutorService(ExecutorService) - Method in interface org.refcodes.controlflow.ExecutorServiceAccessor.ExecutorServiceMutator
Sets the ExecutorService for the ExecutorService property.
setRetryDelyInMs(long) - Method in class org.refcodes.controlflow.impls.RetryCounterImpl
Sets the delay before each retry to wait in milliseconds.
shutdown() - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 
shutdownGracefully(ExecutorService) - Static method in class org.refcodes.controlflow.ControlFlowUtility
Tries to orderly shutdown (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)
shutdownGracefully(ExecutorService, long) - Static method in class org.refcodes.controlflow.ControlFlowUtility
Tries to orderly shutdown (ExecutorService.shutdown()) all tasks of an ExecutorService, after a given timeout in milliseconds, shutdown is forced as of ExecutorService.shutdownNow().
shutdownNow() - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 
submit(Callable<T>) - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 
submit(Runnable, T) - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 
submit(Runnable) - Method in class org.refcodes.controlflow.impls.ManagedExecutorService
 

T

ThreadFactoryImpl - Class in org.refcodes.controlflow
The ThreadFactoryImpl implements the ThreadFactory to be used by an ExecutorService.
ThreadFactoryImpl(int, boolean) - Constructor for class org.refcodes.controlflow.ThreadFactoryImpl
Constructs the ThreadFactoryImpl with the given attributes.
ThreadFactoryImpl(int) - Constructor for class org.refcodes.controlflow.ThreadFactoryImpl
Constructs the ThreadFactoryImpl with the given attributes.
ThreadFactoryImpl(boolean) - Constructor for class org.refcodes.controlflow.ThreadFactoryImpl
Constructs the ThreadFactoryImpl with the given attributes.
throwException(E) - Method in interface org.refcodes.controlflow.ExceptionWatchdog
Passes an exception to the ExceptionWatchdog notifying all awaiting threads inside the #onException() method to be provided with that Exception.
throwException(E) - Method in class org.refcodes.controlflow.impls.ExceptionWatchdogImpl
 
throwIllegalStateException(boolean) - Static method in class org.refcodes.controlflow.ControlFlowUtility
Code redundancy preventing code snippet (in terms of aspect) throwing an IllegalStateException in case an illegal state false is being provided.
toManagedExecutorService(ExecutorService) - Static method in class org.refcodes.controlflow.ControlFlowUtility
Converts an ExecutorService to be a ManagedExecutorService with methods ExecutorService.shutdown() and ExecutorService.shutdownNow() being disabled as them are to be managed by an application server.

V

valueOf(String) - Static method in enum org.refcodes.controlflow.ExecutionStrategy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.refcodes.controlflow.InvocationStrategy
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.refcodes.controlflow.ExecutionStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.refcodes.controlflow.InvocationStrategy
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitForFutures(Collection<? extends Future<?>>) - Static method in class org.refcodes.controlflow.ControlFlowUtility
Joins the Future instances contained in the given Collection.
waitForFutures(Future<?>...) - Static method in class org.refcodes.controlflow.ControlFlowUtility
Joins the Future instances contained in the given Collection.
withExecutorService(ExecutorService) - Method in interface org.refcodes.controlflow.ExecutorServiceAccessor.ExecutorServiceBuilder
Sets the ExecutorService for the ExecutorService property.
A C D E G H I J L M N O R S T V W 
Skip navigation links

Copyright © 2017. All rights reserved.