Class AbstractJournalWriteOperation
- java.lang.Object
-
- net.timewalker.ffmq4.storage.data.impl.journal.AbstractJournalOperation
-
- net.timewalker.ffmq4.storage.data.impl.journal.AbstractJournalWriteOperation
-
- Direct Known Subclasses:
AbstractMetaDataWriteOperation,DataBlockWriteOperation
public abstract class AbstractJournalWriteOperation extends AbstractJournalOperation
AbstractJournalWriteOperation
-
-
Field Summary
Fields Modifier and Type Field Description protected longoffset-
Fields inherited from class net.timewalker.ffmq4.storage.data.impl.journal.AbstractJournalOperation
TYPE_COMMIT, TYPE_DATA_BLOCK_WRITE, TYPE_META_DATA_BLOCK_WRITE, TYPE_META_DATA_WRITE, TYPE_STORE_EXTEND
-
-
Constructor Summary
Constructors Constructor Description AbstractJournalWriteOperation(long transactionId, byte type, long offset)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetOffset()intsize()The storage size for this operationStringtoString()protected voidwriteTo(JournalFile journalFile)Write the operation to the given journal file-
Methods inherited from class net.timewalker.ffmq4.storage.data.impl.journal.AbstractJournalOperation
getTransactionId, getType, next, setNext
-
-
-
-
Method Detail
-
getOffset
public long getOffset()
- Returns:
- the offset
-
writeTo
protected void writeTo(JournalFile journalFile) throws JournalException
Description copied from class:AbstractJournalOperationWrite the operation to the given journal file- Overrides:
writeToin classAbstractJournalOperation- Parameters:
journalFile- teh journal file- Throws:
JournalException
-
size
public int size()
Description copied from class:AbstractJournalOperationThe storage size for this operation- Overrides:
sizein classAbstractJournalOperation
-
toString
public String toString()
- Overrides:
toStringin classAbstractJournalOperation
-
-