public interface Loggable
Classes that implement Loggable and are included in replication
data should implement VersionedWriteLoggable.
| Modifier and Type | Method and Description |
|---|---|
void |
dumpLog(StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
int |
getLogSize() |
long |
getTransactionId() |
boolean |
logicalEquals(Loggable other) |
void |
readFromLog(ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer.
|
int getLogSize()
void writeToLog(ByteBuffer logBuffer)
logBuffer - is the destination buffervoid readFromLog(ByteBuffer itemBuffer, int entryVersion)
itemBuffer - the source bufferentryVersion - the log version of the datavoid dumpLog(StringBuilder sb, boolean verbose)
sb - destination string bufferverbose - if true, dump the full, verbose versionlong getTransactionId()
boolean logicalEquals(Loggable other)
Copyright © 2024. All rights reserved.