|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Loggable
A class that implements Loggable knows how to read and write itself into a ByteBuffer in a format suitable for the JE log or JE replication messages.
Method Summary | |
---|---|
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. |
Method Detail |
---|
int getLogSize()
void writeToLog(ByteBuffer logBuffer)
logBuffer
- is the destination buffervoid readFromLog(ByteBuffer itemBuffer, int entryVersion)
itemBuf
- the source buffervoid dumpLog(StringBuilder sb, boolean verbose)
sb
- destination string bufferverbose
- if true, dump the full, verbose versionlong getTransactionId()
boolean logicalEquals(Loggable other)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |