com.sleepycat.je.rep.impl.node
Class LogFlusher

java.lang.Object
  extended by 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.


Nested Class Summary
(package private) static class LogFlusher.LogFlushTask
           
 
Constructor Summary
LogFlusher(RepNode repNode, Timer timer)
           
 
Method Summary
 void cancelTask()
           
 void configFlushTask(int interval)
           
 int getFlushInterval()
           
 LogFlusher.LogFlushTask getFlushTask()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFlusher

public LogFlusher(RepNode repNode,
                  Timer timer)
Method Detail

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.