| Package | Description |
|---|---|
| journal.io.api |
| Modifier and Type | Method and Description |
|---|---|
Location |
Journal.write(byte[] data,
Journal.WriteType write,
WriteCallback callback)
Write the given byte buffer record, either sync (if
WriteType.SYNC) or async (if WriteType.ASYNC), and
returns the stored Location.A sync write causes all previously batched async writes to be synced too. The provided callback will be invoked if sync is completed or if some error occurs during syncing. |
Copyright © 2014. All Rights Reserved.