ehcache

net.sf.ehcache.transaction
Class XidTransactionIDSerializedForm

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

public final class XidTransactionIDSerializedForm
extends Object
implements Serializable

A 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
XidTransactionIDSerializedForm(String cacheManagerName, Xid xid, String decision)
          Constructor
 
Method Summary
 String getCacheManagerName()
          Get the name of the cache manager which contains the factory that created the original XidTransactionID
 String getDecision()
          Get the original XidTransactionID's decision
 Xid getXid()
          Get the original XidTransactionID's XID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XidTransactionIDSerializedForm

public XidTransactionIDSerializedForm(String cacheManagerName,
                                      Xid xid,
                                      String decision)
Constructor

Parameters:
cacheManagerName - the name of the cache manager which contains the factory that created the original XidTransactionID
xid - the XidTransactionID's XID
decision - the XidTransactionID's decision
Method Detail

getCacheManagerName

public String getCacheManagerName()
Get the name of the cache manager which contains the factory that created the original XidTransactionID

Returns:
the cache manager name

getXid

public Xid getXid()
Get the original XidTransactionID's XID

Returns:
the original XidTransactionID's XID

getDecision

public String getDecision()
Get the original XidTransactionID's decision

Returns:
the original XidTransactionID's decision

ehcache

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