public class DefaultBulkheadProvider extends Object implements BulkheadProvider, GenericDecorator
Constructor and Description |
---|
DefaultBulkheadProvider() |
Modifier and Type | Method and Description |
---|---|
<T> Callable<T> |
decorateCallable(Callable<T> callable,
ResilienceConfiguration configuration)
Decorates the given callable to enable a resilient property.
|
io.github.resilience4j.bulkhead.Bulkhead |
getBulkhead(ResilienceConfiguration configuration)
Provides a bulkhead.
|
@Nonnull public <T> Callable<T> decorateCallable(@Nonnull Callable<T> callable, @Nonnull ResilienceConfiguration configuration)
decorateCallable
in interface GenericDecorator
T
- The type of the callable.callable
- The callable to decorate.configuration
- The configuration to be used.@Nonnull public io.github.resilience4j.bulkhead.Bulkhead getBulkhead(@Nonnull ResilienceConfiguration configuration)
getBulkhead
in interface BulkheadProvider
configuration
- The configuration for constructing the bulkhead.Copyright © 2021 SAP SE. All rights reserved.