public static enum RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy extends Enum<RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy>
Enum Constant and Description |
---|
Disabled
This strategy disables off heap buffering.
|
MemoryMappedRead
Memory maps sequential chunks of the log file into memory and copies
the raw packet bytes into the target buffer.
|
PktReader
Uses a recovery log reader to sequentially scan the log and load
the entries to be dispatched.
|
RandomAccessFile
Uses a random access file to sequentially scan the log and copies
the raw packet bytes into the target buffer.
|
Modifier and Type | Method and Description |
---|---|
static RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy PktReader
The returned packet is reserialized into an off heap buffer and disposed.
public static final RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy RandomAccessFile
This approach performs better than PktReader
as the packet
does not need to be materialized.
public static final RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy MemoryMappedRead
This approach may perform better than RandomAccessFile
as the
mapped bytes don't need to be read into an intermediate buffer before
copying the offheap buffer, but its performance characteristics are
subject to the underlying memory mapped file implementation.
public static final RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy Disabled
When this strategy is used entries that were not retained are read directly from the source file in a random access fashion.
public static RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy[] values()
for (RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy c : RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy.values()) System.out.println(c);
public static RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 Neeve Research, LLC. All Rights Reserved.