public final class Pretoucher
extends net.openhft.chronicle.core.io.AbstractCloseable
Upon invocation of the execute() method, this object will pre-touch pages in the supplied queue's underlying store file, attempting to keep
ahead of any appenders to the queue.
Resources held by this object will be released when the underlying queue is closed.
Alternatively, the shutdown() method can be called to close the supplied queue and release any other resources. Invocation of the execute() method after shutdown() has been called will cause an IllegalStateException to be thrown.
| Constructor and Description |
|---|
Pretoucher(SingleChronicleQueue queue) |
Pretoucher(SingleChronicleQueue queue,
net.openhft.chronicle.bytes.NewChunkListener chunkListener,
IntConsumer cycleChangedListener,
boolean earlyAcquireNextCycle,
boolean canWrite) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected void |
performClose() |
void |
shutdown() |
assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, disableThreadSafetyCheck, disableThreadSafetyCheck, enableCloseableTracing, isClosed, isClosing, isInUserThread, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, toString, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic Pretoucher(SingleChronicleQueue queue)
public Pretoucher(SingleChronicleQueue queue, net.openhft.chronicle.bytes.NewChunkListener chunkListener, IntConsumer cycleChangedListener, boolean earlyAcquireNextCycle, boolean canWrite)
public void execute()
throws net.openhft.chronicle.core.threads.InvalidEventHandlerException
net.openhft.chronicle.core.threads.InvalidEventHandlerExceptionpublic void shutdown()
protected void performClose()
performClose in class net.openhft.chronicle.core.io.AbstractCloseableCopyright © 2021. All rights reserved.