class CommitRecord extends Object implements TxnLogRecord
CommitRecord
represents the logged state of
a Transaction
which has moved to the COMMITTED
state.Modifier and Type | Field and Description |
---|---|
(package private) static Logger |
logger |
(package private) ParticipantHandle[] |
parts |
(package private) static long |
serialVersionUID |
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING
Constructor and Description |
---|
CommitRecord(ParticipantHandle[] parts)
Constructs an
CommitRecord which represents a
Transaction which has moved to the COMMITTED state. |
Modifier and Type | Method and Description |
---|---|
(package private) ParticipantHandle[] |
getParts()
Retrieves the set of
TransactionParticipant s associated
with the recovered Transaction . |
void |
recover(TxnManagerTransaction tmt)
Recovers the state encapsulated the
CommitRecord to
the caller. |
static final long serialVersionUID
static final Logger logger
ParticipantHandle[] parts
CommitRecord(ParticipantHandle[] parts)
CommitRecord
which represents a
Transaction
which has moved to the COMMITTED state.parts
- The array of participants joined in the transactionTransaction
,
TransactionParticipant
,
TransactionConstants
ParticipantHandle[] getParts()
TransactionParticipant
s associated
with the recovered Transaction
.public void recover(TxnManagerTransaction tmt) throws CannotRecoverException
CommitRecord
to
the caller.recover
in interface TxnLogRecord
tmt
- The TxnManagerTransaction
to which
state is recovered.CannotRecoverException
TxnManagerTransaction
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.