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, performCloseInBackground, referenceId, resetUsedByThread, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, toString, unmonitor, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic Pretoucher(SingleChronicleQueue queue)
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 © 2020. All rights reserved.