Class TransactionIDSerializedForm

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      TransactionIDSerializedForm​(java.lang.String cacheManagerName, java.lang.String clusterUUID, java.lang.String ownerID, long creationTime, int id)
      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 TransactionID
      java.lang.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
      java.lang.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​(java.lang.String cacheManagerName,
                                           java.lang.String clusterUUID,
                                           java.lang.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 java.lang.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 java.lang.String getClusterUUID()
        Get the original TransactionID's cluster UUID
        Returns:
        the original TransactionID's cluster UUID
      • getOwnerID

        public java.lang.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