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 with cause an IllegalStateException
to be thrown.
Constructor and Description |
---|
Pretoucher(SingleChronicleQueue queue) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected void |
performClose() |
void |
shutdown() |
assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, toString, unmonitor, waitForClosed, warnAndCloseIfNotClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public Pretoucher(SingleChronicleQueue queue)
public void execute() throws net.openhft.chronicle.core.threads.InvalidEventHandlerException
net.openhft.chronicle.core.threads.InvalidEventHandlerException
public void shutdown()
protected void performClose()
performClose
in class net.openhft.chronicle.core.io.AbstractCloseable
Copyright © 2020. All rights reserved.