org.jboss.cache.interceptors
Class OptimisticReplicationInterceptor

java.lang.Object
  extended by org.jboss.cache.interceptors.Interceptor
      extended by org.jboss.cache.interceptors.BaseRpcInterceptor
          extended by org.jboss.cache.interceptors.OptimisticReplicationInterceptor
All Implemented Interfaces:
InterceptorMBean

public class OptimisticReplicationInterceptor
extends BaseRpcInterceptor

Replication interceptor for the optimistically locked interceptor chain

Author:
Manik Surtani (manik@jboss.org), Steve Woodcock (stevew@jofti.com)

Constructor Summary
OptimisticReplicationInterceptor()
           
 
Method Summary
protected  void broadcastCommit(GlobalTransaction gtx)
           
protected  java.lang.Object broadcastPrepare(JBCMethodCall methodCall, GlobalTransaction gtx)
           
protected  void broadcastRollback(GlobalTransaction gtx)
           
protected  TransactionWorkspace getTransactionWorkspace(GlobalTransaction gtx)
           
 java.lang.Object invoke(org.jgroups.blocks.MethodCall call)
           
 void setCache(TreeCache cache)
           
 
Methods inherited from class org.jboss.cache.interceptors.BaseRpcInterceptor
checkResponses, containsModifications, putCallOnAsyncReplicationQueue, replicateCall, replicateCall
 
Methods inherited from class org.jboss.cache.interceptors.Interceptor
dumpStatistics, getInvocationContext, getNext, getStatisticsEnabled, isActive, isBuddyGroupOrganisationMethod, isOnePhaseCommitPrepareMehod, isPreparing, isTransactionLifecycleMethod, isValid, resetStatistics, setInvocationContext, setNext, setStatisticsEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptimisticReplicationInterceptor

public OptimisticReplicationInterceptor()
Method Detail

setCache

public void setCache(TreeCache cache)
Overrides:
setCache in class BaseRpcInterceptor

invoke

public java.lang.Object invoke(org.jgroups.blocks.MethodCall call)
                        throws java.lang.Throwable
Overrides:
invoke in class Interceptor
Throws:
java.lang.Throwable

broadcastPrepare

protected java.lang.Object broadcastPrepare(JBCMethodCall methodCall,
                                            GlobalTransaction gtx)
                                     throws java.lang.Throwable
Throws:
java.lang.Throwable

broadcastCommit

protected void broadcastCommit(GlobalTransaction gtx)
                        throws java.lang.Throwable
Throws:
java.lang.Throwable

getTransactionWorkspace

protected TransactionWorkspace getTransactionWorkspace(GlobalTransaction gtx)
                                                throws CacheException
Throws:
CacheException

broadcastRollback

protected void broadcastRollback(GlobalTransaction gtx)
                          throws java.lang.Throwable
Throws:
java.lang.Throwable


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.