| Package | Description |
|---|---|
| journal.io.api |
| Modifier and Type | Method and Description |
|---|---|
void |
Journal.delete(Location location)
Delete the record at the given
Location.Deletes cause first a batch sync and always are logical: records will be actually deleted at log cleanup time. |
byte[] |
Journal.read(Location location,
Journal.ReadType read)
Read the record stored at the given
Location, either by syncing
with the disk state (if ReadType.SYNC) or by taking advantage of
speculative disk reads (if ReadType.ASYNC); the latter is faster,
while the former is slower but will suddenly detect deleted records. |
Iterable<Location> |
Journal.redo()
Return an iterable to replay the journal by going through all records
locations.
|
Iterable<Location> |
Journal.redo(Location start)
Return an iterable to replay the journal by going through all records
locations starting from the given one.
|
Iterable<Location> |
Journal.undo()
Return an iterable to replay the journal in reverse, starting with the
newest location and ending with the first.
|
Iterable<Location> |
Journal.undo(Location end)
Return an iterable to replay the journal in reverse, starting with the
newest location and ending with the specified end location.
|
Copyright © 2014. All Rights Reserved.