Package net.sf.ehcache.transaction
Class TransactionIDSerializedForm
- java.lang.Object
-
- net.sf.ehcache.transaction.TransactionIDSerializedForm
-
- All Implemented Interfaces:
java.io.Serializable
public class TransactionIDSerializedForm extends java.lang.Object implements java.io.SerializableA replacement serialized form for transaction IDs. It can be used by transaction ID factories to create 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.restoreTransactionID() call.
- Author:
- Ludovic Orban
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransactionIDSerializedForm(java.lang.String cacheManagerName, java.lang.String clusterUUID, java.lang.String ownerID, long creationTime, int id)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 TransactionIDjava.lang.StringgetClusterUUID()Get the original TransactionID's cluster UUIDlonggetCreationTime()Get the original TransactionID's creation timeintgetId()Get the original TransactionID's internal IDjava.lang.StringgetOwnerID()Get the original TransactionID's owner id
-
-
-
Constructor Detail
-
TransactionIDSerializedForm
public TransactionIDSerializedForm(java.lang.String cacheManagerName, java.lang.String clusterUUID, java.lang.String ownerID, long creationTime, int id)Constructor- Parameters:
cacheManagerName- the name of the cache manager which contains the factory that created the original TransactionIDclusterUUID- the TransactionID's cluster UUIDcreationTime- the TransactionID's creation timeid- the TransactionID's internal ID
-
-
Method Detail
-
getCacheManagerName
public java.lang.String getCacheManagerName()
Get the name of the cache manager which contains the factory that created the original TransactionID- Returns:
- the cache manager name
-
getClusterUUID
public java.lang.String getClusterUUID()
Get the original TransactionID's cluster UUID- Returns:
- the original TransactionID's cluster UUID
-
getOwnerID
public java.lang.String getOwnerID()
Get the original TransactionID's owner id- Returns:
- the original TransactionID's owner id
-
getCreationTime
public long getCreationTime()
Get the original TransactionID's creation time- Returns:
- the original TransactionID's creation time
-
getId
public int getId()
Get the original TransactionID's internal ID- Returns:
- the original TransactionID's internal ID
-
-