org.jboss.cache.interceptors
Class BaseRpcInterceptor
java.lang.Object
org.jboss.cache.interceptors.Interceptor
org.jboss.cache.interceptors.BaseRpcInterceptor
- All Implemented Interfaces:
- InterceptorMBean
- Direct Known Subclasses:
- DataGravitatorInterceptor, InvalidationInterceptor, OptimisticReplicationInterceptor, ReplicationInterceptor
public abstract class BaseRpcInterceptor
- extends Interceptor
Acts as a base for all RPC calls - subclassed by
ReplicationInterceptor
and OptimisticReplicationInterceptor
.
- Author:
- Manik Surtani (manik@jboss.org)
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
dumpStatistics, getLast, getNext, getStatisticsEnabled, invoke, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isValid, resetStatistics, setLast, setNext, setStatisticsEnabled, toString |
defaultSynchronous
protected boolean defaultSynchronous
BaseRpcInterceptor
public BaseRpcInterceptor()
setCache
public void setCache(CacheSPI cache)
- Overrides:
setCache
in class Interceptor
checkResponses
protected void checkResponses(List rsps)
throws Throwable
- Checks whether any of the responses are exceptions. If yes, re-throws
them (as exceptions or runtime exceptions).
- Parameters:
rsps
-
- Throws:
Throwable
replicateCall
protected void replicateCall(MethodCall call,
boolean sync,
Option o)
throws Throwable
- Throws:
Throwable
replicateCall
protected void replicateCall(List<org.jgroups.Address> recipients,
MethodCall call,
boolean sync,
Option o)
throws Throwable
- Throws:
Throwable
putCallOnAsyncReplicationQueue
protected void putCallOnAsyncReplicationQueue(MethodCall call)
containsModifications
protected boolean containsModifications(InvocationContext ctx)
isSynchronous
protected boolean isSynchronous(Option option)
Copyright © 2007 JBoss, a division of Red Hat. All Rights Reserved.