Package com.illumon.iris.db.tables.live
Class OneShotRefreshCombiner
java.lang.Object
com.illumon.iris.db.tables.live.OneShotRefreshCombiner
- All Implemented Interfaces:
LiveTable
,LiveTableRegistrar
,Runnable
On refresh, each of the enqueued runnables is executed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.tables.live.LiveTableRegistrar
addTables, removeTables
-
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
-