ehcache

net.sf.ehcache.transaction
Class TransactionIDSerializedForm

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

public final 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, long creationTime, int id, boolean commit)
          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
 boolean isCommit()
          Get the original TransactionID's commit status
 
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,
                                   long creationTime,
                                   int id,
                                   boolean commit)
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
commit - TransactionID's commit status
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

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

isCommit

public boolean isCommit()
Get the original TransactionID's commit status

Returns:
the original TransactionID's commit status

ehcache

Copyright © 2003-2012 Terracotta, Inc.. All Rights Reserved.