Class CachingOperationInvokerAdvisor
java.lang.Object
org.springframework.boot.actuate.endpoint.invoker.cache.CachingOperationInvokerAdvisor
- All Implemented Interfaces:
OperationInvokerAdvisor
OperationInvokerAdvisor
to optionally provide result caching support.- Since:
- 2.0.0
- Author:
- Stephane Nicoll
-
Constructor Summary
ConstructorDescriptionCachingOperationInvokerAdvisor
(Function<EndpointId, Long> endpointIdTimeToLive) -
Method Summary
Modifier and TypeMethodDescriptionapply
(EndpointId endpointId, OperationType operationType, OperationParameters parameters, OperationInvoker invoker) Apply additional functionality to the given invoker.
-
Constructor Details
-
CachingOperationInvokerAdvisor
-
-
Method Details
-
apply
public OperationInvoker apply(EndpointId endpointId, OperationType operationType, OperationParameters parameters, OperationInvoker invoker) Description copied from interface:OperationInvokerAdvisor
Apply additional functionality to the given invoker.- Specified by:
apply
in interfaceOperationInvokerAdvisor
- Parameters:
endpointId
- the endpoint IDoperationType
- the operation typeparameters
- the operation parametersinvoker
- the invoker to advise- Returns:
- a potentially new operation invoker with support for additional features
-