ehcache

net.sf.ehcache.transaction
Class TransactionIDSerializedForm

java.lang.Object
  extended by net.sf.ehcache.transaction.TransactionIDSerializedForm
All Implemented Interfaces:
Serializable

public class TransactionIDSerializedForm
extends Object
implements Serializable

A 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
TransactionIDSerializedForm(String cacheManagerName, String clusterUUID, String ownerID, long creationTime, int id)
          Constructor
 
Method Summary
 String getCacheManagerName()
          Get the name of the cache manager which contains the factory that created the original TransactionID
 String getClusterUUID()
          Get the original TransactionID's cluster UUID
 long getCreationTime()
          Get the original TransactionID's creation time
 int getId()
          Get the original TransactionID's internal ID
 String getOwnerID()
          Get the original TransactionID's owner id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionIDSerializedForm

public TransactionIDSerializedForm(String cacheManagerName,
                                   String clusterUUID,
                                   String ownerID,
                                   long creationTime,
                                   int id)
Constructor

Parameters:
cacheManagerName - the name of the cache manager which contains the factory that created the original TransactionID
clusterUUID - the TransactionID's cluster UUID
creationTime - the TransactionID's creation time
id - the TransactionID's internal ID
Method Detail

getCacheManagerName

public 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 String getClusterUUID()
Get the original TransactionID's cluster UUID

Returns:
the original TransactionID's cluster UUID

getOwnerID

public 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

ehcache

Copyright 2001-2015, Terracotta, Inc.