public final class Pretoucher extends Object implements Closeable
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) |
public Pretoucher(SingleChronicleQueue queue)
public void execute()
throws net.openhft.chronicle.core.threads.InvalidEventHandlerException
net.openhft.chronicle.core.threads.InvalidEventHandlerExceptionpublic void shutdown()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2019. All rights reserved.