public class NIOSequentialFileFactory extends AbstractSequentialFileFactory
alignment, bufferSize, bufferTimeout, critialErrorListener, criticalAnalyzer, dataSync, EXECUTOR_TIMEOUT, journalDir, maxIO, timedBuffer, writeExecutor
Constructor and Description |
---|
NIOSequentialFileFactory(File journalDir,
boolean buffered,
int maxIO) |
NIOSequentialFileFactory(File journalDir,
boolean buffered,
int bufferSize,
int bufferTimeout,
int maxIO,
boolean logRates) |
NIOSequentialFileFactory(File journalDir,
boolean buffered,
int bufferSize,
int bufferTimeout,
int maxIO,
boolean logRates,
IOCriticalErrorListener listener,
CriticalAnalyzer analyzer) |
NIOSequentialFileFactory(File journalDir,
boolean buffered,
IOCriticalErrorListener listener,
int maxIO) |
NIOSequentialFileFactory(File journalDir,
int maxIO) |
NIOSequentialFileFactory(File journalDir,
IOCriticalErrorListener listener,
int maxIO) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
allocateDirectBuffer(int size)
used for cases where you need direct buffer outside of the journal context.
|
static ByteBuffer |
allocateDirectByteBuffer(int size) |
int |
calculateBlockSize(int bytes) |
void |
clearBuffer(ByteBuffer buffer) |
SequentialFile |
createSequentialFile(String fileName) |
void |
disableBufferReuse() |
void |
enableBufferReuse() |
int |
getAlignment() |
boolean |
isSupportsCallbacks() |
ByteBuffer |
newBuffer(int size)
Note: You need to release the buffer if is used for reading operations.
|
void |
releaseBuffer(ByteBuffer buffer) |
void |
releaseDirectBuffer(ByteBuffer buffer)
used for cases where you need direct buffer outside of the journal context.
|
ByteBuffer |
wrapBuffer(byte[] bytes) |
activateBuffer, createDirs, deactivateBuffer, flush, getBufferSize, getCriticalAnalyzer, getDirectory, getMaxIO, isDatasync, listFiles, onIOError, setAlignment, setDatasync, start, stop
public NIOSequentialFileFactory(File journalDir, int maxIO)
public NIOSequentialFileFactory(File journalDir, IOCriticalErrorListener listener, int maxIO)
public NIOSequentialFileFactory(File journalDir, boolean buffered, int maxIO)
public NIOSequentialFileFactory(File journalDir, boolean buffered, IOCriticalErrorListener listener, int maxIO)
public NIOSequentialFileFactory(File journalDir, boolean buffered, int bufferSize, int bufferTimeout, int maxIO, boolean logRates)
public NIOSequentialFileFactory(File journalDir, boolean buffered, int bufferSize, int bufferTimeout, int maxIO, boolean logRates, IOCriticalErrorListener listener, CriticalAnalyzer analyzer)
public static ByteBuffer allocateDirectByteBuffer(int size)
public void enableBufferReuse()
public void disableBufferReuse()
public SequentialFile createSequentialFile(String fileName)
public boolean isSupportsCallbacks()
public ByteBuffer allocateDirectBuffer(int size)
SequentialFileFactory
public void releaseDirectBuffer(ByteBuffer buffer)
SequentialFileFactory
public ByteBuffer newBuffer(int size)
SequentialFileFactory
public void releaseBuffer(ByteBuffer buffer)
releaseBuffer
in interface SequentialFileFactory
releaseBuffer
in class AbstractSequentialFileFactory
public void clearBuffer(ByteBuffer buffer)
public ByteBuffer wrapBuffer(byte[] bytes)
public int getAlignment()
getAlignment
in interface SequentialFileFactory
getAlignment
in class AbstractSequentialFileFactory
public int calculateBlockSize(int bytes)
Copyright © 2020 JBoss by Red Hat. All rights reserved.