public abstract class AbstractJournalWriteOperation extends AbstractJournalOperation
| Modifier and Type | Field and Description |
|---|---|
protected long |
offset |
TYPE_COMMIT, TYPE_DATA_BLOCK_WRITE, TYPE_META_DATA_BLOCK_WRITE, TYPE_META_DATA_WRITE, TYPE_STORE_EXTEND| Constructor and Description |
|---|
AbstractJournalWriteOperation(long transactionId,
byte type,
long offset)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getOffset() |
int |
size()
The storage size for this operation
|
String |
toString() |
protected void |
writeTo(JournalFile journalFile)
Write the operation to the given journal file
|
getTransactionId, getType, next, setNextpublic AbstractJournalWriteOperation(long transactionId,
byte type,
long offset)
public long getOffset()
protected void writeTo(JournalFile journalFile) throws JournalException
AbstractJournalOperationwriteTo in class AbstractJournalOperationjournalFile - teh journal fileJournalExceptionpublic int size()
AbstractJournalOperationsize in class AbstractJournalOperationpublic String toString()
toString in class AbstractJournalOperationCopyright © 2021. All rights reserved.