org.terracotta.modules.ehcache.xa
Class EhcacheXAStoreClusteredImpl

java.lang.Object
  extended by org.terracotta.modules.ehcache.xa.EhcacheXAStoreClusteredImpl
All Implemented Interfaces:
net.sf.ehcache.transaction.xa.EhcacheXAStore

public class EhcacheXAStoreClusteredImpl
extends Object
implements net.sf.ehcache.transaction.xa.EhcacheXAStore


Nested Class Summary
static class EhcacheXAStoreClusteredImpl.Version
           
static class EhcacheXAStoreClusteredImpl.VersionTable
           
 
Constructor Summary
EhcacheXAStoreClusteredImpl(boolean bypassValidation)
           
 
Method Summary
 void checkin(Object key, Xid xid, boolean readOnly)
           
 long checkout(Object key, Xid xid)
           
 net.sf.ehcache.transaction.xa.PreparedContext createPreparedContext()
           
 net.sf.ehcache.transaction.TransactionContext createTransactionContext(Xid xid)
           
 net.sf.ehcache.store.Store getOldVersionStore()
           
 net.sf.ehcache.transaction.xa.PreparedContext getPreparedContext(Xid xid)
           
 Xid[] getPreparedXids()
           
 net.sf.ehcache.transaction.TransactionContext getTransactionContext(Xid xid)
           
 net.sf.ehcache.store.Store getUnderlyingStore()
           
 void initalizeTransients(net.sf.ehcache.Ehcache aCache, ClusteredStore uStore, ClusteredStore oldStore)
           
 boolean isBypassingValidation()
           
 boolean isPrepared(Xid xid)
           
 boolean isValid(net.sf.ehcache.transaction.xa.VersionAwareCommand command, Xid xid)
           
 void prepare(Xid xid, net.sf.ehcache.transaction.xa.PreparedContext context)
           
 void removeData(Xid xid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhcacheXAStoreClusteredImpl

public EhcacheXAStoreClusteredImpl(boolean bypassValidation)
Method Detail

initalizeTransients

public void initalizeTransients(net.sf.ehcache.Ehcache aCache,
                                ClusteredStore uStore,
                                ClusteredStore oldStore)

getOldVersionStore

public net.sf.ehcache.store.Store getOldVersionStore()
Specified by:
getOldVersionStore in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

isPrepared

public boolean isPrepared(Xid xid)
Specified by:
isPrepared in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

removeData

public void removeData(Xid xid)
Specified by:
removeData in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

isBypassingValidation

public boolean isBypassingValidation()
Specified by:
isBypassingValidation in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

checkin

public void checkin(Object key,
                    Xid xid,
                    boolean readOnly)
Specified by:
checkin in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

checkout

public long checkout(Object key,
                     Xid xid)
Specified by:
checkout in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

createTransactionContext

public net.sf.ehcache.transaction.TransactionContext createTransactionContext(Xid xid)
Specified by:
createTransactionContext in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

getPreparedXids

public Xid[] getPreparedXids()
Specified by:
getPreparedXids in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

getTransactionContext

public net.sf.ehcache.transaction.TransactionContext getTransactionContext(Xid xid)
Specified by:
getTransactionContext in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

isValid

public boolean isValid(net.sf.ehcache.transaction.xa.VersionAwareCommand command,
                       Xid xid)
Specified by:
isValid in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

prepare

public void prepare(Xid xid,
                    net.sf.ehcache.transaction.xa.PreparedContext context)
             throws net.sf.ehcache.transaction.xa.EhcacheXAException
Specified by:
prepare in interface net.sf.ehcache.transaction.xa.EhcacheXAStore
Throws:
net.sf.ehcache.transaction.xa.EhcacheXAException

createPreparedContext

public net.sf.ehcache.transaction.xa.PreparedContext createPreparedContext()
Specified by:
createPreparedContext in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

getPreparedContext

public net.sf.ehcache.transaction.xa.PreparedContext getPreparedContext(Xid xid)
Specified by:
getPreparedContext in interface net.sf.ehcache.transaction.xa.EhcacheXAStore

getUnderlyingStore

public net.sf.ehcache.store.Store getUnderlyingStore()
Specified by:
getUnderlyingStore in interface net.sf.ehcache.transaction.xa.EhcacheXAStore


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.