Interface LogIndex
- All Known Implementing Classes:
DefaultLogIndex,RotatingLogIndex
public interface LogIndex
-
Method Summary
Modifier and Type Method Description voidclose()voiddrop()voidflush()longgetPosition()booleanisEmpty()default java.util.List<byte[]>readAllLogs()byte[]readLog(long pos)LogIteratorreadLogs()LogIteratorreadLogs(long pos)default longwriteLog(byte[] bytes)longwriteLog(byte[] bytes, boolean committed)
-
Method Details
-
writeLog
default long writeLog(byte[] bytes) -
writeLog
long writeLog(byte[] bytes, boolean committed) -
readLog
byte[] readLog(long pos) -
readLogs
LogIterator readLogs() -
readLogs
-
readAllLogs
default java.util.List<byte[]> readAllLogs() -
getPosition
long getPosition() -
isEmpty
boolean isEmpty() -
flush
void flush() -
close
void close() -
drop
void drop()
-