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 void
addTable(LiveTable liveTable)
Add a table to this registrar.void
maybeRefreshTable(LiveTable table, boolean onlyIfHaveLock)
void
refresh()
Refresh this LiveTable.void
removeTable(LiveTable runnable)
Remove a table from this registrar.void
requestRefresh(LiveTable table)
-
Constructor Details
-
OneShotRefreshCombiner
public OneShotRefreshCombiner()
-
-
Method Details
-
refresh
public void refresh()Description copied from interface:LiveTable
Refresh this LiveTable. -
addTable
Description copied from interface:LiveTableRegistrar
Add a table to this registrar.- Specified by:
addTable
in interfaceLiveTableRegistrar
- Parameters:
liveTable
- The table to add
-
removeTable
Description copied from interface:LiveTableRegistrar
Remove a table from this registrar.- Specified by:
removeTable
in interfaceLiveTableRegistrar
- Parameters:
runnable
- The table to remove
-
requestRefresh
- Specified by:
requestRefresh
in interfaceLiveTableRegistrar
-
maybeRefreshTable
- Specified by:
maybeRefreshTable
in interfaceLiveTableRegistrar
-