| Package | Description |
|---|---|
| journal.io.api |
| Modifier and Type | Method and Description |
|---|---|
static Journal.WriteType |
Journal.WriteType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Journal.WriteType[] |
Journal.WriteType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
Journal.write(byte[] data,
Journal.WriteType write)
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. |
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.