public class DefaultThreadContextProvider extends Object implements GenericDecorator
Constructor and Description |
---|
DefaultThreadContextProvider() |
Modifier and Type | Method and Description |
---|---|
ThreadContextExecutor |
createThreadContextExecutor()
Create a new ThreadContextExecutor.
|
<T> Callable<T> |
decorateCallable(Callable<T> callable,
ResilienceConfiguration configuration)
Decorates the given callable to enable a resilient property.
|
@Nonnull public <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.@Nonnull public ThreadContextExecutor createThreadContextExecutor()
Copyright © 2020 SAP SE. All rights reserved.