Package com.illumon.iris.db.tables.live
Class OneShotRefreshCombiner
java.lang.Object
com.illumon.iris.db.tables.live.OneShotRefreshCombiner
- All Implemented Interfaces:
LiveTable,LiveTableRegistrar
public class OneShotRefreshCombiner extends Object implements LiveTable, LiveTableRegistrar
On refresh, each of the enqueued runnables is executed.
-
Constructor Summary
Constructors Constructor Description OneShotRefreshCombiner() -
Method Summary
Modifier and Type Method Description voidaddTable(LiveTable liveTable)Add a table to this registrar.voidmaybeRefreshTable(LiveTable table, boolean onlyIfHaveLock)voidrefresh()Refresh this LiveTable.voidremoveTable(LiveTable runnable)Remove a table from this registrar.voidrequestRefresh(LiveTable table)
-
Constructor Details
-
OneShotRefreshCombiner
public OneShotRefreshCombiner()
-
-
Method Details
-
refresh
public void refresh()Description copied from interface:LiveTableRefresh this LiveTable. -
addTable
Description copied from interface:LiveTableRegistrarAdd a table to this registrar.- Specified by:
addTablein interfaceLiveTableRegistrar- Parameters:
liveTable- The table to add
-
removeTable
Description copied from interface:LiveTableRegistrarRemove a table from this registrar.- Specified by:
removeTablein interfaceLiveTableRegistrar- Parameters:
runnable- The table to remove
-
requestRefresh
- Specified by:
requestRefreshin interfaceLiveTableRegistrar
-
maybeRefreshTable
- Specified by:
maybeRefreshTablein interfaceLiveTableRegistrar
-