public interface RedoLog
Modifier and Type | Method and Description |
---|---|
void |
append(MultiIndex.Action action)
Appends an action to the log.
|
void |
close()
Flushes all pending writes to the redo log and closes it.
|
void |
flush()
Flushes all pending writes to the redo log.
|
List<MultiIndex.Action> |
getActions()
Returns a List with all
MultiIndex.Action instances in the
redo log. |
int |
getSize()
Returns the number of entries in this redo log.
|
boolean |
hasEntries()
Returns
true if this redo log contains any entries,
false otherwise. |
boolean hasEntries()
true
if this redo log contains any entries,
false
otherwise.true
if this redo log contains any entries,
false
otherwise.int getSize()
List<MultiIndex.Action> getActions() throws IOException
MultiIndex.Action
instances in the
redo log.MultiIndex.Action
instances in the
redo log.IOException
- if an error occurs while reading from the redo log.void append(MultiIndex.Action action) throws IOException
action
- the action to append.IOException
- if the node cannot be written to the redo
log.void flush() throws IOException
IOException
- if an error occurs while writing.void close() throws IOException
IOException
- if an error occurs while writing.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.