public class TimerFlush
extends java.lang.Object
implements java.awt.event.ActionListener
Constructor and Description |
---|
TimerFlush(ConfigIfc config,
LoggerIfc logger,
FlushHandler flushHandler) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
This method is called when the flush timer expires.
|
void |
addRecord(java.lang.Object key)
Adds a record to the flush timer's list of records to flush.
|
void |
addRecords(java.lang.Object[] objects)
Adds a list of records to the flush list.
|
protected void |
getConfigData() |
boolean |
isHealthy()
Added for Node Health support.
|
void |
resetFlushTimer(java.lang.Object key)
Reset the flush timer for a given entry in the table, as
determined by the "FlushTimerSet" configuration setting.
|
void |
shutdown()
Shuts down the flushing capabilities, including the flush timer.
|
void |
startFlushTimer()
Starts the flush timer thread.
|
public TimerFlush(ConfigIfc config, LoggerIfc logger, FlushHandler flushHandler)
public void startFlushTimer()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void shutdown()
public void addRecords(java.lang.Object[] objects)
objects
- Array of objects to manage.public void resetFlushTimer(java.lang.Object key)
public void addRecord(java.lang.Object key)
key
- Key of the record to be flushed at a later time.public boolean isHealthy()
protected void getConfigData()