Package com.tibco.tibjms.admin
Class DetailedTransactionInfo
- java.lang.Object
-
- com.tibco.tibjms.admin.TransactionInfo
-
- com.tibco.tibjms.admin.DetailedTransactionInfo
-
public class DetailedTransactionInfo extends TransactionInfo
This class represents the a transaction as it is present on the EMS server. In addition to TransactionInfo it contains more detail. Especially about Messages that are part of this transaction.- Since:
- EMS 6.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDetailedTransactionInfo.ConsumerMessageThis class represents a Message that is about to be consumed on commit.static classDetailedTransactionInfo.ProducerMessageThis class represents a Message that is about to be produced on commit.static classDetailedTransactionInfo.XAMessageInternal class extended by ConsumerMessage and ProducerMessage.
-
Field Summary
-
Fields inherited from class com.tibco.tibjms.admin.TransactionInfo
TRANSACTION_ACTIVE, TRANSACTION_ENDSUCCESS, TRANSACTION_PREPARED, TRANSACTION_ROLLBACKONLY, TRANSACTION_SUSPENDED, TRANSACTION_UNKNOWN
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetailedTransactionInfo.ConsumerMessage[]getConsumerMessages()Get the list of messages that are about to be consumed on commit of this transaction.DetailedTransactionInfo.ProducerMessage[]getProducerMessages()Get the list of messages that are about to be produced on commit of this transaction.intgetRemainingTime()Get the remaining time before this transaction times out.booleanhasTimeout()Returns whether or not this transaction has a timeout associated with it.-
Methods inherited from class com.tibco.tibjms.admin.TransactionInfo
from, getBranchQualifier, getFormatId, getGlobalTransactionId, getState, toString
-
-
-
-
Method Detail
-
getProducerMessages
public DetailedTransactionInfo.ProducerMessage[] getProducerMessages()
Get the list of messages that are about to be produced on commit of this transaction.- Returns:
- the list of messages that are about to be produced on commit of this transaction. Null indicates that messages where not collected due to transaction state.
-
getConsumerMessages
public DetailedTransactionInfo.ConsumerMessage[] getConsumerMessages()
Get the list of messages that are about to be consumed on commit of this transaction.- Returns:
- the list of messages that are about to be consumed on commit of this transaction. Null indicates that messages where not collected due to transaction state.
-
getRemainingTime
public int getRemainingTime()
Get the remaining time before this transaction times out.- Returns:
- remaining time before timeout (in seconds).
- Since:
- EMS 6.3
-
hasTimeout
public boolean hasTimeout()
Returns whether or not this transaction has a timeout associated with it.- Returns:
- true if a timeout exists
- Since:
- EMS 6.3
-
-