public class EhCacheXAResourceHolder extends AbstractXAResourceHolder<EhCacheXAResourceHolder>
Copyright 2003-2010 Terracotta, Inc.
XAStatefulHolder.State| Constructor and Description |
|---|
EhCacheXAResourceHolder(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. |
Object |
getConnectionHandle()
Create a disposable handler used to drive a pooled instance of
XAStatefulHolder. |
Date |
getLastReleaseDate()
Get the date at which this object was last released to the pool.
|
ResourceBean |
getResourceBean()
Get the ResourceBean which created this XAResourceHolder.
|
XAResource |
getXAResource()
Get the vendor's
XAResource implementation of the wrapped resource. |
EhCacheXAResourceHolder |
getXAResourceHolderForXaResource(XAResource xaResource) |
List<EhCacheXAResourceHolder> |
getXAResourceHolders()
Get the list of
XAResourceHolders created by this
XAStatefulHolder that are still open. |
acceptVisitorForXAResourceHolderStates, getXAResourceHolderStateCountForGtrid, getXAResourceHolderStateGtrids, getXAResourceHolderStatesForGtrid, hasStateForXAResource, isExistXAResourceHolderStatesForGtrid, isParticipatingInActiveGlobalTransaction, putXAResourceHolderState, removeXAResourceHolderStateaddStateChangeEventListener, getCreationDate, getState, removeStateChangeEventListener, setStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStateChangeEventListener, getCreationDate, getState, removeStateChangeEventListener, setStatepublic EhCacheXAResourceHolder(XAResource resource, ResourceBean bean)
resource - the required XAResourcebean - the required ResourceBeanpublic XAResource getXAResource()
XAResource implementation of the wrapped resource.public ResourceBean getResourceBean()
public void close()
throws Exception
XAStatefulHolder represents.Exception - a resource-specific exception thrown when there is an error closing the physical connection.public Object getConnectionHandle() throws Exception
XAStatefulHolder.
This method is thread-safe.
Exception - a resource-specific exception thrown when the disposable connection cannot be created.public Date getLastReleaseDate()
public List<EhCacheXAResourceHolder> getXAResourceHolders()
XAResourceHolders created by this
XAStatefulHolder that are still open.
This method is thread-safe.
XAResourceHolders created by this
XAStatefulHolder that are still open.public EhCacheXAResourceHolder getXAResourceHolderForXaResource(XAResource xaResource)
Copyright © 2006-2016 Bitronix Software. All Rights Reserved.