Package org.objectweb.howl.log.xa
Class XALogRecord
java.lang.Object
org.objectweb.howl.log.LogRecord
org.objectweb.howl.log.xa.XALogRecord
Extends
LogRecord with
members that are specific to XALogger.
Allows XALogger to provide a reference to an activeTx entry associated with the log record to the calling TM.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXALogRecord(int size) constructs an instance of XALogRecord with a byte[] of size data. -
Method Summary
Modifier and TypeMethodDescriptiongetTx()booleanisCommit()(package private) voidsetTx(XACommittingTx tx) Called by XALogger ReplayListener to save the XACommitingTx entry associated with an XACOMMIT record.
-
Field Details
-
tx
-
-
Constructor Details
-
XALogRecord
public XALogRecord(int size) constructs an instance of XALogRecord with a byte[] of size data.- Parameters:
size- initial size of data buffer.the get() method will reallocate the data buffer to accomdate larger records.
-
-
Method Details
-
getTx
- Returns:
- Returns the XACommittingTx of this XALogRecord.
-
setTx
Called by XALogger ReplayListener to save the XACommitingTx entry associated with an XACOMMIT record.- Parameters:
tx- The XACommittingTx to set.
-
isCommit
public boolean isCommit()- Returns:
- true if the current record is an XACOMMIT type.
-