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 Summary
Fields Modifier and Type Field Description static org.infinispan.commons.marshall.AdvancedExternalizer<TxState>
EXTERNALIZER
-
Constructor Summary
Constructors Constructor Description TxState(GlobalTransaction globalTransaction, boolean recoverable, long timeout, org.infinispan.commons.time.TimeService timeService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
GlobalTransaction
getGlobalTransaction()
List<org.infinispan.commands.write.WriteCommand>
getModifications()
Address
getOriginator()
Status
getStatus()
long
getTimeout()
int
hashCode()
boolean
hasTimedOut(long currentTimeNs)
boolean
isRecoverable()
TxState
markPreparing(List<org.infinispan.commands.write.WriteCommand> modifications, org.infinispan.commons.time.TimeService timeService)
TxState
setStatus(Status newStatus, boolean cleanupModification, org.infinispan.commons.time.TimeService timeService)
String
toString()
-
-
-
Field Detail
-
EXTERNALIZER
public static final org.infinispan.commons.marshall.AdvancedExternalizer<TxState> EXTERNALIZER
-
-
Constructor Detail
-
TxState
public TxState(GlobalTransaction globalTransaction, boolean recoverable, long timeout, org.infinispan.commons.time.TimeService timeService)
-
-
Method Detail
-
getTimeout
public long getTimeout()
-
markPreparing
public TxState markPreparing(List<org.infinispan.commands.write.WriteCommand> modifications, org.infinispan.commons.time.TimeService timeService)
-
getOriginator
public Address getOriginator()
-
setStatus
public TxState setStatus(Status newStatus, boolean cleanupModification, org.infinispan.commons.time.TimeService timeService)
-
getStatus
public Status getStatus()
-
getGlobalTransaction
public GlobalTransaction getGlobalTransaction()
-
getModifications
public List<org.infinispan.commands.write.WriteCommand> getModifications()
-
hasTimedOut
public boolean hasTimedOut(long currentTimeNs)
-
isRecoverable
public boolean isRecoverable()
-
-