ehcache

net.sf.ehcache.transaction
Class XidTransactionIDSerializedForm

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

public 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, String cacheName, String ownerID, Xid xid)
          Constructor
 
Method Summary
 String getCacheManagerName()
          Get the name of the cache manager which contains the factory that created the original XidTransactionID
 String getCacheName()
          Get the name of the cache which this original XidTransactionID is for.
 String getOwnerID()
          Get the original XidTransactionID's owner id
 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,
                                      String cacheName,
                                      String ownerID,
                                      Xid xid)
Constructor

Parameters:
cacheManagerName - the name of the cache manager which contains the factory that created the original XidTransactionID
cacheName - the name of the cache for this id
xid - the XidTransactionID's XID
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

getCacheName

public String getCacheName()
Get the name of the cache which this original XidTransactionID is for.

Returns:
the cache name

getOwnerID

public String getOwnerID()
Get the original XidTransactionID's owner id

Returns:
the original XidTransactionID's owner id

getXid

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

Returns:
the original XidTransactionID's XID

ehcache

Copyright 2001-2016, Terracotta, Inc.