public class NoCacheHandler extends AbstractOperationDelegate implements IOperationCacheHandler
IOperationCacheHandler
which just does nothing to
influence the operations execution.Constructor and Description |
---|
NoCacheHandler() |
Modifier and Type | Method and Description |
---|---|
void |
afterOperationExecution(IOperation operation)
Is invoked after the operation itself is started with
IOperation#internalExecute() . |
void |
beforeOperationExecution(IOperation operation)
Is invoked before the operation itself is started with
IOperation#internalExecute() . |
void |
onOperationSuccessful(IOperation operation)
Is called when the operation executed successfully (i.e.
|
void |
setCacheManager(ICacheManager cacheManager)
Set the
ICacheManager that should be used for the
IOperation . |
boolean |
skipOperationExecution(IOperation operation) |
onOperationFailed, onOperationFinished
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onOperationFailed, onOperationFinished
public void beforeOperationExecution(IOperation operation)
IOperationCacheHandler
IOperation#internalExecute()
. Can be used to read some data from
the cache and set it into the operation.beforeOperationExecution
in interface IOperationCacheHandler
public void afterOperationExecution(IOperation operation)
IOperationCacheHandler
IOperation#internalExecute()
. Can be used to read data from the
operation and write it into the cache.afterOperationExecution
in interface IOperationCacheHandler
public boolean skipOperationExecution(IOperation operation)
skipOperationExecution
in interface IOperationCacheHandler
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 AbstractOperationDelegate
operation
- the successful IOperation
(incl. the result string)public void setCacheManager(ICacheManager cacheManager)
IOperationCacheHandler
ICacheManager
that should be used for the
IOperation
.setCacheManager
in interface IOperationCacheHandler