Class GlobalTransaction

  • All Implemented Interfaces:
    Direct Known Subclasses:
    DldGlobalTransaction, RecoveryAwareGlobalTransaction

    public class GlobalTransaction
    extends Object
    implements Cloneable
    Uniquely identifies a transaction that spans all JVMs in a cluster. This is used when replicating all modifications in a transaction; the PREPARE and COMMIT (or ROLLBACK) messages have to have a unique identifier to associate the changes with
    . GlobalTransaction should be instantiated thorough TransactionFactory class, as their type depends on the runtime configuration.
    Bela Ban Apr 12, 2003, Manik Surtani (,
    • Field Detail

      • id

        protected long id
    • Constructor Detail

      • GlobalTransaction

        protected GlobalTransaction()
        empty ctor used by externalization.
      • GlobalTransaction

        protected GlobalTransaction​(Address addr,
                                    boolean remote)
    • Method Detail

      • getAddress

        public Address getAddress()
      • getId

        public long getId()
      • isRemote

        public boolean isRemote()
      • setRemote

        public void setRemote​(boolean remote)
      • hashCode

        public int hashCode()
        hashCode in class Object
      • globalId

        public final String globalId()
        Returns a simplified representation of the transaction.
      • setId

        public void setId​(long id)
      • setAddress

        public void setAddress​(Address address)