public interface GenericDecoratorAsync extends GenericDecorator
Modifier and Type | Method and Description |
---|---|
default <T> Callable<T> |
decorateCallable(Callable<T> callable,
ResilienceConfiguration configuration)
Decorates the given callable to enable a resilient property.
|
<T> Callable<T> |
decorateCallable(ResilienceConfiguration configuration,
Callable<T> callable,
ExecutorService executor)
Decorates the given callable to enable a resilient property.
|
@Nonnull <T> Callable<T> decorateCallable(@Nonnull ResilienceConfiguration configuration, @Nonnull Callable<T> callable, @Nonnull ExecutorService executor)
T
- The type of the callable.configuration
- The configuration to be used.callable
- The callable to decorate.executor
- The executor service instance to run asynchronous tasks with.@Nonnull default <T> Callable<T> decorateCallable(@Nonnull Callable<T> callable, @Nonnull ResilienceConfiguration configuration)
GenericDecorator
decorateCallable
in interface GenericDecorator
T
- The type of the callable.callable
- The callable to decorate.configuration
- The configuration to be used.Copyright © 2021 SAP SE. All rights reserved.