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