Package net.sf.ehcache.transaction
Class XidTransactionIDSerializedForm
- java.lang.Object
-
- net.sf.ehcache.transaction.XidTransactionIDSerializedForm
-
- All Implemented Interfaces:
java.io.Serializable
public class XidTransactionIDSerializedForm extends java.lang.Object implements java.io.SerializableA replacement serialized form for XID transaction IDs. It can be used by transaction ID factories to create XID-based IDs that serialize to this form (using writeReplace()) if they don't want or cannot provide directly serializable IDs.During deserialization, objects of this class will be replaced by the result of the CacheManager.restoreXidTransactionID() call.
- Author:
- Ludovic Orban
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XidTransactionIDSerializedForm(java.lang.String cacheManagerName, java.lang.String cacheName, java.lang.String ownerID, javax.transaction.xa.Xid xid)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCacheManagerName()Get the name of the cache manager which contains the factory that created the original XidTransactionIDjava.lang.StringgetCacheName()Get the name of the cache which this original XidTransactionID is for.java.lang.StringgetOwnerID()Get the original XidTransactionID's owner idjavax.transaction.xa.XidgetXid()Get the original XidTransactionID's XID
-
-
-
Constructor Detail
-
XidTransactionIDSerializedForm
public XidTransactionIDSerializedForm(java.lang.String cacheManagerName, java.lang.String cacheName, java.lang.String ownerID, javax.transaction.xa.Xid xid)Constructor- Parameters:
cacheManagerName- the name of the cache manager which contains the factory that created the original XidTransactionIDcacheName- the name of the cache for this idxid- the XidTransactionID's XID
-
-
Method Detail
-
getCacheManagerName
public java.lang.String getCacheManagerName()
Get the name of the cache manager which contains the factory that created the original XidTransactionID- Returns:
- the cache manager name
-
getCacheName
public java.lang.String getCacheName()
Get the name of the cache which this original XidTransactionID is for.- Returns:
- the cache name
-
getOwnerID
public java.lang.String getOwnerID()
Get the original XidTransactionID's owner id- Returns:
- the original XidTransactionID's owner id
-
getXid
public javax.transaction.xa.Xid getXid()
Get the original XidTransactionID's XID- Returns:
- the original XidTransactionID's XID
-
-