| Package | Description |
|---|---|
| io.smallrye.faulttolerance.core |
Core implementations of fault tolerance strategies conforming to MicroProfile Fault Tolerance.
|
| io.smallrye.faulttolerance.core.async | |
| io.smallrye.faulttolerance.core.bulkhead | |
| io.smallrye.faulttolerance.core.circuit.breaker | |
| io.smallrye.faulttolerance.core.fallback | |
| io.smallrye.faulttolerance.core.retry | |
| io.smallrye.faulttolerance.core.timeout | |
| io.smallrye.faulttolerance.core.util |
| Modifier and Type | Class and Description |
|---|---|
class |
GeneralMetricsRecorder<V> |
class |
Invocation<V>
A "sentinel" fault tolerance strategy that does no processing, it only invokes the guarded
Callable. |
| Constructor and Description |
|---|
GeneralMetricsRecorder(FaultToleranceStrategy<V> delegate,
GeneralMetrics metrics) |
| Modifier and Type | Class and Description |
|---|---|
class |
FutureExecution<V> |
| Constructor and Description |
|---|
FutureExecution(FaultToleranceStrategy<Future<V>> delegate,
Executor executor) |
| Modifier and Type | Class and Description |
|---|---|
class |
BulkheadBase<V> |
class |
CompletionStageBulkhead<V> |
class |
SemaphoreBulkhead<V> |
class |
ThreadPoolBulkhead<V>
The implementation intentionally doesn't leverage an executor with
a limited queue but limits the task intake with Semaphore
Proper removal from executor's queue is not possible for MicroProfile Context Propagation. |
| Constructor and Description |
|---|
CompletionStageBulkhead(FaultToleranceStrategy<CompletionStage<V>> delegate,
String description,
ExecutorService executor,
int size,
int queueSize,
BulkheadBase.MetricsRecorder recorder) |
SemaphoreBulkhead(FaultToleranceStrategy<V> delegate,
String description,
int size,
BulkheadBase.MetricsRecorder metricsRecorder) |
ThreadPoolBulkhead(FaultToleranceStrategy<Future<V>> delegate,
String description,
ExecutorService executor,
int size,
int queueSize,
BulkheadBase.MetricsRecorder recorder) |
| Modifier and Type | Class and Description |
|---|---|
class |
CircuitBreaker<V> |
class |
CompletionStageCircuitBreaker<V> |
| Constructor and Description |
|---|
CircuitBreaker(FaultToleranceStrategy<V> delegate,
String description,
SetOfThrowables failOn,
SetOfThrowables skipOn,
long delayInMillis,
int requestVolumeThreshold,
double failureRatio,
int successThreshold,
Stopwatch stopwatch,
CircuitBreaker.MetricsRecorder metricsRecorder) |
CompletionStageCircuitBreaker(FaultToleranceStrategy<CompletionStage<V>> delegate,
String description,
SetOfThrowables failOn,
SetOfThrowables skipOn,
long delayInMillis,
int requestVolumeThreshold,
double failureRatio,
int successThreshold,
Stopwatch stopwatch,
CircuitBreaker.MetricsRecorder metricsRecorder) |
| Modifier and Type | Class and Description |
|---|---|
class |
CompletionStageFallback<V> |
class |
Fallback<V> |
| Constructor and Description |
|---|
CompletionStageFallback(FaultToleranceStrategy<CompletionStage<V>> delegate,
String description,
FallbackFunction<CompletionStage<V>> fallback,
SetOfThrowables applyOn,
SetOfThrowables skipOn,
Fallback.MetricsRecorder metricsRecorder) |
Fallback(FaultToleranceStrategy<V> delegate,
String description,
FallbackFunction<V> fallback,
SetOfThrowables applyOn,
SetOfThrowables skipOn,
Fallback.MetricsRecorder metricsRecorder) |
| Modifier and Type | Class and Description |
|---|---|
class |
CompletionStageRetry<V> |
class |
Retry<V> |
| Constructor and Description |
|---|
CompletionStageRetry(FaultToleranceStrategy<CompletionStage<V>> delegate,
String description,
SetOfThrowables retryOn,
SetOfThrowables abortOn,
long maxRetries,
long maxTotalDurationInMillis,
Delay delayBetweenRetries,
Stopwatch stopwatch,
Retry.MetricsRecorder metricsRecorder) |
Retry(FaultToleranceStrategy<V> delegate,
String description,
SetOfThrowables retryOn,
SetOfThrowables abortOn,
long maxRetries,
long maxTotalDurationInMillis,
Delay delayBetweenRetries,
Stopwatch stopwatch,
Retry.MetricsRecorder metricsRecorder) |
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncTimeout<V>
The next strategy in the chain must be
Timeout, and it is invoked on an extra thread. |
class |
CompletionStageTimeout<V> |
class |
Timeout<V> |
| Constructor and Description |
|---|
AsyncTimeout(FaultToleranceStrategy<Future<V>> delegate,
Executor executor) |
CompletionStageTimeout(FaultToleranceStrategy<CompletionStage<V>> delegate,
String description,
long timeoutInMillis,
TimeoutWatcher watcher,
ExecutorService originalExecutor,
Timeout.MetricsRecorder metricsRecorder) |
Timeout(FaultToleranceStrategy<V> delegate,
String description,
long timeoutInMillis,
TimeoutWatcher watcher,
Timeout.MetricsRecorder metricsRecorder) |
| Modifier and Type | Class and Description |
|---|---|
class |
Tracer<V>
Debugging utility to show how the chain of fault tolerance strategies progresses.
|
| Constructor and Description |
|---|
Tracer(FaultToleranceStrategy<V> delegate) |
Copyright © 2018–2020. All rights reserved.