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 TypeMethodDescriptionvoidAdd 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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: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
-