java.lang.AutoCloseable
, java.io.Closeable
public static interface Translog.Snapshot
extends java.io.Closeable
Modifier and Type | Method | Description |
---|---|---|
Translog.Operation |
next() |
Returns the next operation in the snapshot or
null if we reached the end. |
default int |
overriddenOperations() |
The number of operations have been overridden (eg.
|
int |
totalOperations() |
The total estimated number of operations in the snapshot.
|
int totalOperations()
default int overriddenOperations()
totalOperations()
, this value is updated each time after next()
) is called.Translog.Operation next() throws java.io.IOException
null
if we reached the end.java.io.IOException