Class AbstractWALRoller<T extends Abortable>

java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.wal.AbstractWALRoller<T>
All Implemented Interfaces:
Closeable, AutoCloseable, Runnable
Direct Known Subclasses:
LogRoller, MasterRegionWALRoller

@Private public abstract class AbstractWALRoller<T extends Abortable> extends Thread implements Closeable
Runs periodically to determine if the WAL should be rolled.

NOTE: This class extends Thread rather than Chore because the sleep time can be interrupted when there is something to do, rather than the Chore sleep time which is invariant.

The scheduleFlush(String, List) is abstract here, as sometimes we hold a region without a region server but we still want to roll its WAL.

TODO: change to a pool of threads