Package org.apache.activemq.state
Class TransactionState
- java.lang.Object
-
- org.apache.activemq.state.TransactionState
-
public class TransactionState extends Object
-
-
Constructor Summary
Constructors Constructor Description TransactionState(TransactionId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCommand(Command operation)
void
addProducerState(ProducerState producerState)
List<Command>
getCommands()
long
getCreatedAt()
TransactionId
getId()
int
getPreparedResult()
Map<ProducerId,ProducerState>
getProducerStates()
boolean
isPrepared()
void
setPrepared(boolean prepared)
void
setPreparedResult(int preparedResult)
void
shutdown()
String
toString()
-
-
-
Constructor Detail
-
TransactionState
public TransactionState(TransactionId id)
-
-
Method Detail
-
addCommand
public void addCommand(Command operation)
-
shutdown
public void shutdown()
-
getId
public TransactionId getId()
-
setPrepared
public void setPrepared(boolean prepared)
-
isPrepared
public boolean isPrepared()
-
setPreparedResult
public void setPreparedResult(int preparedResult)
-
getPreparedResult
public int getPreparedResult()
-
addProducerState
public void addProducerState(ProducerState producerState)
-
getProducerStates
public Map<ProducerId,ProducerState> getProducerStates()
-
getCreatedAt
public long getCreatedAt()
-
-