com.sleepycat.je.rep.impl.node
Class LogFlusher
java.lang.Object
com.sleepycat.je.rep.impl.node.LogFlusher
class LogFlusher
- extends Object
We decide to move the default durability for replication to NO_SYNC, which
requires flushing the write buffer periodically to make sure those updates
are durable on the disk. LogFlusher will use the LogFlushTask, which extends
TimerTask to do this work.
The period roughly corresponds to the interval specified by
LOG_FLUSH_TASK_INTERVAL
, although heavy GC activity or the busy system may
expand this period considerably.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogFlusher
public LogFlusher(RepNode repNode,
Timer timer)
configFlushTask
public void configFlushTask(int interval)
cancelTask
public void cancelTask()
getFlushInterval
public int getFlushInterval()
getFlushTask
public LogFlusher.LogFlushTask getFlushTask()
Copyright (c) 2004-2012 Oracle. All rights reserved.