org.ehcache.transactions.xa.txmgr.btm
Class Ehcache3XAResourceProducer

java.lang.Object
  extended by bitronix.tm.resource.common.ResourceBean
      extended by org.ehcache.transactions.xa.txmgr.btm.Ehcache3XAResourceProducer
All Implemented Interfaces:
bitronix.tm.resource.common.XAResourceProducer, java.io.Serializable, javax.naming.Referenceable

public class Ehcache3XAResourceProducer
extends bitronix.tm.resource.common.ResourceBean
implements bitronix.tm.resource.common.XAResourceProducer

See Also:
Serialized Form

Constructor Summary
Ehcache3XAResourceProducer()
           
 
Method Summary
protected  void addXAResource(javax.transaction.xa.XAResource xaResource)
           
 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()
           
protected  boolean isEmpty()
           
protected  boolean removeXAResource(javax.transaction.xa.XAResource xaResource)
           
 void setFailed(boolean failed)
           
 bitronix.tm.internal.XAResourceHolderState startRecovery()
           
 java.lang.String toString()
           
 
Methods inherited from class bitronix.tm.resource.common.ResourceBean
getAcquireIncrement, getAcquisitionInterval, getAcquisitionTimeout, getAllowLocalTransactions, getApplyTransactionTimeout, getAutomaticEnlistingEnabled, getClassName, getDeferConnectionRelease, getDriverProperties, getIgnoreRecoveryFailures, getMaxIdleTime, getMaxPoolSize, getMinPoolSize, getShareTransactionConnections, getTwoPcOrderingPosition, getUniqueName, getUseTmJoin, incCreatedResourcesCounter, isDisabled, setAcquireIncrement, setAcquisitionInterval, setAcquisitionTimeout, setAllowLocalTransactions, setApplyTransactionTimeout, setAutomaticEnlistingEnabled, setClassName, setDeferConnectionRelease, setDisabled, setDriverProperties, setIgnoreRecoveryFailures, setMaxIdleTime, setMaxPoolSize, setMinPoolSize, setShareTransactionConnections, setTwoPcOrderingPosition, setUniqueName, setUseTmJoin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface bitronix.tm.resource.common.XAResourceProducer
getUniqueName
 

Constructor Detail

Ehcache3XAResourceProducer

public Ehcache3XAResourceProducer()
Method Detail

addXAResource

protected void addXAResource(javax.transaction.xa.XAResource xaResource)

removeXAResource

protected boolean removeXAResource(javax.transaction.xa.XAResource xaResource)

startRecovery

public bitronix.tm.internal.XAResourceHolderState startRecovery()
                                                         throws bitronix.tm.recovery.RecoveryException
Specified by:
startRecovery in interface bitronix.tm.resource.common.XAResourceProducer
Throws:
bitronix.tm.recovery.RecoveryException

isEmpty

protected boolean isEmpty()

endRecovery

public void endRecovery()
                 throws bitronix.tm.recovery.RecoveryException
Specified by:
endRecovery in interface bitronix.tm.resource.common.XAResourceProducer
Throws:
bitronix.tm.recovery.RecoveryException

setFailed

public void setFailed(boolean failed)
Specified by:
setFailed in interface bitronix.tm.resource.common.XAResourceProducer

findXAResourceHolder

public bitronix.tm.resource.common.XAResourceHolder findXAResourceHolder(javax.transaction.xa.XAResource xaResource)
Specified by:
findXAResourceHolder in interface bitronix.tm.resource.common.XAResourceProducer

init

public void init()
Specified by:
init in interface bitronix.tm.resource.common.XAResourceProducer

close

public void close()
Specified by:
close in interface bitronix.tm.resource.common.XAResourceProducer

createPooledConnection

public bitronix.tm.resource.common.XAStatefulHolder createPooledConnection(java.lang.Object xaFactory,
                                                                           bitronix.tm.resource.common.ResourceBean bean)
                                                                    throws java.lang.Exception
Specified by:
createPooledConnection in interface bitronix.tm.resource.common.XAResourceProducer
Throws:
java.lang.Exception

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Specified by:
getReference in interface javax.naming.Referenceable
Throws:
javax.naming.NamingException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object