Class XidTransactionIDSerializedForm

  • All Implemented Interfaces:
    java.io.Serializable

    public class XidTransactionIDSerializedForm
    extends java.lang.Object
    implements java.io.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

      Constructors 
      Constructor Description
      XidTransactionIDSerializedForm​(java.lang.String cacheManagerName, java.lang.String cacheName, java.lang.String ownerID, javax.transaction.xa.Xid xid)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCacheManagerName()
      Get the name of the cache manager which contains the factory that created the original XidTransactionID
      java.lang.String getCacheName()
      Get the name of the cache which this original XidTransactionID is for.
      java.lang.String getOwnerID()
      Get the original XidTransactionID's owner id
      javax.transaction.xa.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​(java.lang.String cacheManagerName,
                                              java.lang.String cacheName,
                                              java.lang.String ownerID,
                                              javax.transaction.xa.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 java.lang.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 java.lang.String getCacheName()
        Get the name of the cache which this original XidTransactionID is for.
        Returns:
        the cache name
      • getOwnerID

        public java.lang.String getOwnerID()
        Get the original XidTransactionID's owner id
        Returns:
        the original XidTransactionID's owner id
      • getXid

        public javax.transaction.xa.Xid getXid()
        Get the original XidTransactionID's XID
        Returns:
        the original XidTransactionID's XID