|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.util.DataRecordFlushManager
public class DataRecordFlushManager
This is a static singleton class which performs a number of useful functions for suppressing excessive I/O writes to the backing store for rapidly- changing data records
Field Summary | |
---|---|
private static DataRecordFlushThread |
flushThread
WRITEME |
static Set<DataRecord> |
pendingRecords
records pending a flush to backing store |
Constructor Summary | |
---|---|
DataRecordFlushManager()
|
Method Summary | ||
---|---|---|
static int |
flush(int count)
Flush a few records, then return how many remain |
|
(package private) static
|
flush(T r)
Flush a record to the database |
|
static void |
flushAll()
Flush all records for shutdown |
|
private static
|
flushLater(T record)
If the Background Flush thread is not already running, make sure that it will run |
|
static
|
update(RecordLoader<T> recordLoader,
T record)
Decide whether to update the saved copy of a changed record based upon its current change time and modification time, and whether there are remote listeners who are interested in receiving notifications of changes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static DataRecordFlushThread flushThread
public static final Set<DataRecord> pendingRecords
Constructor Detail |
---|
public DataRecordFlushManager()
Method Detail |
---|
public static int flush(int count)
count
- the number of records to flush
static <T extends DataRecord> void flush(T r)
T
- the record typer
- the record to be flushedpublic static void flushAll()
private static <T extends DataRecord> void flushLater(T record)
T
- WRITEMErecord
- WRITEMEpublic static <T extends DataRecord> void update(RecordLoader<T> recordLoader, T record)
T
- the type of data record at questionrecordLoader
- the loader responsible for the data recordrecord
- the data record which has changed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |