Class TxState

java.lang.Object
org.infinispan.server.hotrod.tx.table.TxState

@Immutable public class TxState extends Object
A transaction state stored globally in all the cluster members.
Since:
9.4
Author:
Pedro Ruivo
  • Field Details

  • Constructor Details

  • Method Details

    • getTimeout

      public long getTimeout()
    • markPreparing

      public TxState markPreparing(List<org.infinispan.commands.write.WriteCommand> modifications, TimeService timeService)
    • getOriginator

      public Address getOriginator()
    • setStatus

      public TxState setStatus(Status newStatus, boolean cleanupModification, TimeService timeService)
    • getStatus

      public Status getStatus()
    • getGlobalTransaction

      public GlobalTransaction getGlobalTransaction()
    • getModifications

      public List<org.infinispan.commands.write.WriteCommand> getModifications()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • hasTimedOut

      public boolean hasTimedOut(long currentTimeNs)
    • isRecoverable

      public boolean isRecoverable()
    • isSameAs

      public boolean isSameAs(GlobalTransaction globalTransaction, boolean recoverable, long timeout)
    • toString

      public String toString()
      Overrides:
      toString in class Object