AsyncInterceptor instead.@Deprecated public abstract class PrePostProcessingCommandInterceptor extends CommandInterceptor
doBeforeCall(InvocationContext,
VisitableCommand) and if this method returns true, it will proceed to invoking a handleXXX() method and
lastly, doAfterCall(InvocationContext, VisitableCommand) in a finally block. Note that the
doAfterCall() method is still invoked even if doBeforeCall() returns false.
Instead of overriding visitXXX() methods, implementations should override their handleXXX()
counterparts defined in this class instead, as well as the doAfterCall(InvocationContext ,VisitableCommand)
method and optionally doBeforeCall(InvocationContext, VisitableCommand).
cacheConfiguration| Constructor and Description |
|---|
PrePostProcessingCommandInterceptor()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doAfterCall(InvocationContext ctx,
VisitableCommand command)
Deprecated.
Callback that is invoked after every handleXXX() method defined above.
|
protected boolean |
doBeforeCall(InvocationContext ctx,
VisitableCommand command)
Deprecated.
|
protected java.lang.Object |
handleClearCommand(InvocationContext ctx,
ClearCommand command)
Deprecated.
|
protected java.lang.Object |
handleCommitCommand(InvocationContext ctx,
CommitCommand command)
Deprecated.
|
protected java.lang.Object |
handleEvictCommand(InvocationContext ctx,
EvictCommand command)
Deprecated.
|
protected java.lang.Object |
handleGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
Deprecated.
|
protected java.lang.Object |
handlePrepareCommand(InvocationContext ctx,
PrepareCommand command)
Deprecated.
|
protected java.lang.Object |
handlePutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
Deprecated.
|
protected java.lang.Object |
handlePutMapCommand(InvocationContext ctx,
PutMapCommand command)
Deprecated.
|
protected java.lang.Object |
handleRemoveCommand(InvocationContext ctx,
RemoveCommand command)
Deprecated.
|
protected java.lang.Object |
handleReplaceCommand(InvocationContext ctx,
ReplaceCommand command)
Deprecated.
|
protected java.lang.Object |
handleRollbackCommand(InvocationContext ctx,
RollbackCommand command)
Deprecated.
|
protected java.lang.Object |
handleSizeCommand(InvocationContext ctx,
SizeCommand command)
Deprecated.
|
java.lang.Object |
visitClearCommand(InvocationContext ctx,
ClearCommand command)
Deprecated.
|
java.lang.Object |
visitCommitCommand(TxInvocationContext ctx,
CommitCommand command)
Deprecated.
|
java.lang.Object |
visitComputeCommand(InvocationContext ctx,
ComputeCommand command)
Deprecated.
|
java.lang.Object |
visitComputeIfAbsentCommand(InvocationContext ctx,
ComputeIfAbsentCommand command)
Deprecated.
|
java.lang.Object |
visitEvictCommand(InvocationContext ctx,
EvictCommand command)
Deprecated.
|
java.lang.Object |
visitGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
Deprecated.
|
java.lang.Object |
visitPrepareCommand(TxInvocationContext ctx,
PrepareCommand command)
Deprecated.
|
java.lang.Object |
visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
Deprecated.
|
java.lang.Object |
visitPutMapCommand(InvocationContext ctx,
PutMapCommand command)
Deprecated.
|
java.lang.Object |
visitRemoveCommand(InvocationContext ctx,
RemoveCommand command)
Deprecated.
|
java.lang.Object |
visitReplaceCommand(InvocationContext ctx,
ReplaceCommand command)
Deprecated.
|
java.lang.Object |
visitRollbackCommand(TxInvocationContext ctx,
RollbackCommand command)
Deprecated.
|
java.lang.Object |
visitSizeCommand(InvocationContext ctx,
SizeCommand command)
Deprecated.
|
getCacheWithFlags, getLockAcquisitionTimeout, getLog, getNext, handleDefault, hasNext, hasSkipLocking, invokeNextInterceptor, setNext, setNextInterceptor, visitCommandvisitCollection, visitEntrySetCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommandclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitApplyDeltaCommand, visitDistributedExecuteCommand, visitRemoveExpiredCommandpublic PrePostProcessingCommandInterceptor()
public java.lang.Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws java.lang.Throwable
visitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handlePutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws java.lang.Throwable
visitRemoveCommand in interface VisitorvisitRemoveCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handleRemoveCommand(InvocationContext ctx, RemoveCommand command) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws java.lang.Throwable
visitReplaceCommand in interface VisitorvisitReplaceCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handleReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object visitComputeCommand(InvocationContext ctx, ComputeCommand command) throws java.lang.Throwable
visitComputeCommand in interface VisitorvisitComputeCommand in class AbstractVisitorjava.lang.Throwablepublic java.lang.Object visitComputeIfAbsentCommand(InvocationContext ctx, ComputeIfAbsentCommand command) throws java.lang.Throwable
visitComputeIfAbsentCommand in interface VisitorvisitComputeIfAbsentCommand in class AbstractVisitorjava.lang.Throwablepublic java.lang.Object visitClearCommand(InvocationContext ctx, ClearCommand command) throws java.lang.Throwable
visitClearCommand in interface VisitorvisitClearCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handleClearCommand(InvocationContext ctx, ClearCommand command) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws java.lang.Throwable
visitPutMapCommand in interface VisitorvisitPutMapCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handlePutMapCommand(InvocationContext ctx, PutMapCommand command) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object visitEvictCommand(InvocationContext ctx, EvictCommand command) throws java.lang.Throwable
visitEvictCommand in interface VisitorvisitEvictCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handleEvictCommand(InvocationContext ctx, EvictCommand command) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object visitSizeCommand(InvocationContext ctx, SizeCommand command) throws java.lang.Throwable
visitSizeCommand in interface VisitorvisitSizeCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handleSizeCommand(InvocationContext ctx, SizeCommand command) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws java.lang.Throwable
visitGetKeyValueCommand in interface VisitorvisitGetKeyValueCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handleGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command) throws java.lang.Throwable
visitPrepareCommand in interface VisitorvisitPrepareCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handlePrepareCommand(InvocationContext ctx, PrepareCommand command) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object visitRollbackCommand(TxInvocationContext ctx, RollbackCommand command) throws java.lang.Throwable
visitRollbackCommand in interface VisitorvisitRollbackCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handleRollbackCommand(InvocationContext ctx, RollbackCommand command) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object visitCommitCommand(TxInvocationContext ctx, CommitCommand command) throws java.lang.Throwable
visitCommitCommand in interface VisitorvisitCommitCommand in class AbstractVisitorjava.lang.Throwableprotected java.lang.Object handleCommitCommand(InvocationContext ctx, CommitCommand command) throws java.lang.Throwable
java.lang.Throwableprotected abstract void doAfterCall(InvocationContext ctx, VisitableCommand command)
ctx - invocation contextcommand - command which was invokedprotected boolean doBeforeCall(InvocationContext ctx, VisitableCommand command)