CommandInterceptor instead, since it provides strongly typed callbacks which are more efficient.@Deprecated public abstract class Interceptor extends CommandInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected CacheSPI<?,?> |
cache
Deprecated.
|
protected boolean |
trace
Deprecated.
|
configuration, log| Constructor and Description |
|---|
Interceptor()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
handleDefault(InvocationContext ctx,
VisitableCommand command)
Deprecated.
The default behaviour of the visitXXX methods, which is to ignore the call and pass the call up to the next
interceptor in the chain.
|
Object |
invoke(InvocationContext ctx)
Deprecated.
Using this method call for forwarding a call in the chain is not redable and error prone in the case of interceptors
extending other interceptors.
|
Object |
nextInterceptor(InvocationContext ctx)
Deprecated.
Forwards the call to the nextInterceptor interceptor in the chain.
|
void |
setCache(CacheSPI cache)
Deprecated.
|
String |
toString()
Deprecated.
|
getNext, hasNext, invokeNextInterceptor, setNextvisitClearDataCommand, visitCollection, visitCommitCommand, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGetChildrenNamesCommand, visitGetDataMapCommand, visitGetKeysCommand, visitGetKeyValueCommand, visitGetNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitMoveCommand, visitOptimisticPrepareCommand, visitPrepareCommand, visitPutDataMapCommand, visitPutForExternalReadCommand, visitPutKeyValueCommand, visitRemoveKeyCommand, visitRemoveNodeCommand, visitRollbackCommandprotected CacheSPI<?,?> cache
protected boolean trace
public void setCache(CacheSPI cache)
public Object invoke(InvocationContext ctx) throws Throwable
nextInterceptor(org.jboss.cache.InvocationContext)Throwablepublic Object nextInterceptor(InvocationContext ctx) throws Throwable
Throwablepublic Object handleDefault(InvocationContext ctx, VisitableCommand command) throws Throwable
CommandInterceptorhandleDefault in class CommandInterceptorctx - invocation contextcommand - command to invokeThrowable - in the event of problemsCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.