| Package | Description |
|---|---|
| com.github.lpezet.java.patterns.command |
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncCommand<T> |
class |
BaseCommand<T> |
class |
CircuitBreakerCommand<T> |
class |
RetryCommand<T> |
class |
SupervisorCommand<T> |
| Modifier and Type | Method and Description |
|---|---|
static <S extends ICommand<T>,T> |
Commands.circuitBreaker(S pSource,
ICircuitBreakerStrategy pStrategy) |
static <S extends ICommand<T>,T> |
Commands.retry(S pSource,
IRetryStrategy pRetryStrategy) |
static <S extends ICommand<T>,T> |
Commands.supervise(S pSource,
long pTimeout,
TimeUnit pUnit) |
| Constructor and Description |
|---|
AsyncCommand(ExecutorService pExecutorService,
ICommand<T> pImpl) |
AsyncResult(ExecutorService pExecutorService,
ICommand<T> pImpl)
Executes command with custom callable.
|
CircuitBreakerCommand(ICommand<T> pImpl,
ICircuitBreakerStrategy pCircuitBreakerStrategy) |
RetryCommand(ICommand<T> pImpl,
IRetryStrategy pRetryStrategy) |
SupervisorCommand(ICommand<T> pImpl,
ExecutorService pExecutorService,
long pTimeout,
TimeUnit pTimeoutUnit) |
SupervisorCommand(ICommand<T> pImpl,
long pTimeout,
TimeUnit pTimeoutUnit) |
lpezet