Class CachingOperationInvokerAdvisor
- java.lang.Object
- org.springframework.boot.actuate.endpoint.invoker.cache.CachingOperationInvokerAdvisor
- All Implemented Interfaces:
OperationInvokerAdvisor
public class CachingOperationInvokerAdvisor extends Object implements OperationInvokerAdvisor
OperationInvokerAdvisor
to optionally provide result caching support.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description CachingOperationInvokerAdvisor(Function<EndpointId,Long> endpointIdTimeToLive)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationInvoker
apply(EndpointId endpointId, OperationType operationType, OperationParameters parameters, OperationInvoker invoker)
Apply additional functionality to the given invoker.
Constructor Detail
CachingOperationInvokerAdvisor
public CachingOperationInvokerAdvisor(Function<EndpointId,Long> endpointIdTimeToLive)
Method Detail
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:
- an potentially new operation invoker with support for additional features