public class ServerOnlyCacheHandler extends AbstractRestCacheHandler
IOperationCacheHandler
executes the operation and stores the
result in the cache, but never reads from the cache.Constructor and Description |
---|
ServerOnlyCacheHandler() |
Modifier and Type | Method and Description |
---|---|
void |
onOperationSuccessful(IOperation operation)
Is called when the operation executed successfully (i.e.
|
boolean |
skipOperationExecution(IOperation operation) |
afterOperationExecution, getCacheManager, onOperationFinished
setCacheManager
beforeOperationExecution
onOperationFailed
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onOperationFailed
public boolean skipOperationExecution(IOperation operation)
skipOperationExecution
in interface IOperationCacheHandler
skipOperationExecution
in class NoCacheHandler
IOperation
should be
skipped, e.g. if the result is offline and the operation will
fail anyway (with a costly timeout).public void onOperationSuccessful(IOperation operation)
AbstractOperationDelegate
onOperationSuccessful
in class NoCacheHandler
operation
- the successful IOperation
(incl. the result string)