|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbitronix.tm.resource.common.ResourceBean
net.sf.ehcache.transaction.manager.btm.EhCacheXAResourceProducer
public final class EhCacheXAResourceProducer
EHCache implementation of BTM's XAResourceProducer
Method Summary | |
---|---|
void |
close()
|
bitronix.tm.resource.common.XAStatefulHolder |
createPooledConnection(java.lang.Object xaFactory,
bitronix.tm.resource.common.ResourceBean bean)
|
void |
endRecovery()
|
bitronix.tm.resource.common.XAResourceHolder |
findXAResourceHolder(javax.transaction.xa.XAResource xaResource)
|
javax.naming.Reference |
getReference()
|
void |
init()
|
static void |
registerXAResource(java.lang.String uniqueName,
javax.transaction.xa.XAResource xaResource)
Register an XAResource of a cache with BTM. |
void |
setFailed(boolean failed)
|
bitronix.tm.internal.XAResourceHolderState |
startRecovery()
|
static void |
unregisterXAResource(java.lang.String uniqueName,
javax.transaction.xa.XAResource xaResource)
Unregister an XAResource of a cache from BTM. |
Methods inherited from class bitronix.tm.resource.common.ResourceBean |
---|
getAcquireIncrement, getAcquisitionInterval, getAcquisitionTimeout, getAllowLocalTransactions, getApplyTransactionTimeout, getAutomaticEnlistingEnabled, getClassName, getDeferConnectionRelease, getDriverProperties, getMaxIdleTime, getMaxPoolSize, getMinPoolSize, getTwoPcOrderingPosition, getUniqueName, getUseTmJoin, incCreatedResourcesCounter, setAcquireIncrement, setAcquisitionInterval, setAcquisitionTimeout, setAllowLocalTransactions, setApplyTransactionTimeout, setAutomaticEnlistingEnabled, setClassName, setDeferConnectionRelease, setDriverProperties, setMaxIdleTime, setMaxPoolSize, setMinPoolSize, setTwoPcOrderingPosition, setUniqueName, setUseTmJoin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bitronix.tm.resource.common.XAResourceProducer |
---|
getUniqueName |
Method Detail |
---|
public static void registerXAResource(java.lang.String uniqueName, javax.transaction.xa.XAResource xaResource)
uniqueName
- the uniqueName of this XAResourceProducer, usually the cache's namexaResource
- the XAResource to be registeredpublic static void unregisterXAResource(java.lang.String uniqueName, javax.transaction.xa.XAResource xaResource)
uniqueName
- the uniqueName of this XAResourceProducer, usually the cache's namexaResource
- the XAResource to be registeredpublic bitronix.tm.internal.XAResourceHolderState startRecovery() throws bitronix.tm.recovery.RecoveryException
startRecovery
in interface bitronix.tm.resource.common.XAResourceProducer
bitronix.tm.recovery.RecoveryException
public void endRecovery() throws bitronix.tm.recovery.RecoveryException
endRecovery
in interface bitronix.tm.resource.common.XAResourceProducer
bitronix.tm.recovery.RecoveryException
public void setFailed(boolean failed)
setFailed
in interface bitronix.tm.resource.common.XAResourceProducer
public bitronix.tm.resource.common.XAResourceHolder findXAResourceHolder(javax.transaction.xa.XAResource xaResource)
findXAResourceHolder
in interface bitronix.tm.resource.common.XAResourceProducer
public void init()
init
in interface bitronix.tm.resource.common.XAResourceProducer
public void close()
close
in interface bitronix.tm.resource.common.XAResourceProducer
public bitronix.tm.resource.common.XAStatefulHolder createPooledConnection(java.lang.Object xaFactory, bitronix.tm.resource.common.ResourceBean bean) throws java.lang.Exception
createPooledConnection
in interface bitronix.tm.resource.common.XAResourceProducer
java.lang.Exception
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |