org.jboss.cache.interceptors
Class CallInterceptor
java.lang.Object
org.jboss.cache.interceptors.Interceptor
org.jboss.cache.interceptors.CallInterceptor
- All Implemented Interfaces:
- InterceptorMBean
public class CallInterceptor
- extends Interceptor
Always at the end of the chain, directly in front of the cache. Simply calls into the cache using reflection.
If the call resulted in a modification, add the Modification to the end of the modification list
keyed by the current transaction.
Although always added to the end of an optimistically locked chain as well, calls should not make it down to
this interceptor unless it is a call the OptimisticNodeInterceptor knows nothing about.
- Version:
- $Id: CallInterceptor.java 4968 2008-01-03 19:17:09Z manik.surtani@jboss.com $
- Author:
- Bela Ban
Method Summary |
Object |
invoke(InvocationContext ctx)
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. |
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
assertTransactionValid, dumpStatistics, getLast, getNext, getStatisticsEnabled, initLogger, isActive, isPreparing, isValid, nextInterceptor, peekNode, resetStatistics, setCache, setLast, setNext, setStatisticsEnabled, toString |
CallInterceptor
public CallInterceptor()
invoke
public Object invoke(InvocationContext ctx)
throws Throwable
- Description copied from class:
Interceptor
- 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. This metod rather refers to interceptor doing its business operations rather than
delegating to the nextInterceptor interceptor in chain. For delegation please use
Interceptor.nextInterceptor(org.jboss.cache.InvocationContext)
- Overrides:
invoke
in class Interceptor
- Throws:
Throwable
Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.