public class EhCacheXAResourceHolder extends AbstractXAResourceHolder
Copyright 2003-2010 Terracotta, Inc.
STATE_ACCESSIBLE, STATE_CLOSED, STATE_IN_POOL, STATE_NOT_ACCESSIBLE| Constructor and Description |
|---|
EhCacheXAResourceHolder(javax.transaction.xa.XAResource resource,
ResourceBean bean)
Create a new EhCacheXAResourceHolder for a particular XAResource
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the physical connection that this
XAStatefulHolder represents. |
java.lang.Object |
getConnectionHandle()
Create a disposable handler used to drive a pooled instance of
XAStatefulHolder. |
java.util.Date |
getLastReleaseDate()
Get the date at which this object was last released to the pool.
|
ResourceBean |
getResourceBean()
Get the ResourceBean which created this XAResourceHolder.
|
javax.transaction.xa.XAResource |
getXAResource()
Get the vendor's
XAResource implementation of the wrapped resource. |
java.util.List<XAResourceHolder> |
getXAResourceHolders()
Get the list of
XAResourceHolders created by this
XAStatefulHolder that are still open. |
getXAResourceHolderStateGtrids, getXAResourceHolderStatesForGtrid, hasStateForXAResource, isParticipatingInActiveGlobalTransaction, putXAResourceHolderState, removeXAResourceHolderStateaddStateChangeEventListener, getState, removeStateChangeEventListener, setStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStateChangeEventListener, getState, removeStateChangeEventListener, setStatepublic EhCacheXAResourceHolder(javax.transaction.xa.XAResource resource,
ResourceBean bean)
resource - the required XAResourcebean - the required ResourceBeanpublic javax.transaction.xa.XAResource getXAResource()
XAResource implementation of the wrapped resource.public ResourceBean getResourceBean()
public void close()
throws java.lang.Exception
XAStatefulHolder represents.java.lang.Exception - a resource-specific exception thrown when there is an error closing the physical connection.public java.lang.Object getConnectionHandle()
throws java.lang.Exception
XAStatefulHolder.
This method is thread-safe.
java.lang.Exception - a resource-specific exception thrown when the disaposable connection cannot be created.public java.util.Date getLastReleaseDate()
public java.util.List<XAResourceHolder> getXAResourceHolders()
XAResourceHolders created by this
XAStatefulHolder that are still open.
This method is thread-safe.
XAResourceHolders created by this
XAStatefulHolder that are still open.Copyright © 2006-2021 Bitronix Software. All Rights Reserved.