public static enum BufferManagerConfigurer.FileStoreStrategy extends Enum<BufferManagerConfigurer.FileStoreStrategy>
AUTO
will try to select the best one based on a heuristic and is recommended for general
use.Enum Constant and Description |
---|
ASYNCHRONOUS_FILE_CHANNEL
Use an NIO
FileChannel which is driven asynchronously on a separate thread pool. |
AUTO
Auto-select a suitable strategy.
|
MEMORY_MAPPED
Use NIO memory-mapped IO.
|
OLD_RANDOM_ACCESS
Use old non-NIO
RandomAccessFile . |
Modifier and Type | Method and Description |
---|---|
static BufferManagerConfigurer.FileStoreStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BufferManagerConfigurer.FileStoreStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BufferManagerConfigurer.FileStoreStrategy AUTO
public static final BufferManagerConfigurer.FileStoreStrategy ASYNCHRONOUS_FILE_CHANNEL
FileChannel
which is driven asynchronously on a separate thread pool.public static final BufferManagerConfigurer.FileStoreStrategy MEMORY_MAPPED
public static final BufferManagerConfigurer.FileStoreStrategy OLD_RANDOM_ACCESS
RandomAccessFile
. This method is rather slow.public static BufferManagerConfigurer.FileStoreStrategy[] values()
for (BufferManagerConfigurer.FileStoreStrategy c : BufferManagerConfigurer.FileStoreStrategy.values()) System.out.println(c);
public static BufferManagerConfigurer.FileStoreStrategy 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 © 2024 levigo holding gmbh. All rights reserved.