Class TableDataRefreshService.Null
java.lang.Object
com.illumon.iris.db.v2.locations.util.TableDataRefreshService.Null
- All Implemented Interfaces:
TableDataRefreshService
- Enclosing interface:
- TableDataRefreshService
public static final class TableDataRefreshService.Null
extends Object
implements TableDataRefreshService
"Null" instance, intended for unit tests and other standalone scenarios.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.locations.util.TableDataRefreshService
TableDataRefreshService.CancellableSubscriptionToken, TableDataRefreshService.Helper, TableDataRefreshService.Null
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionscheduleTableLocationProviderRefresh
(AbstractTableLocationProvider tableLocationProvider) Schedule refresh for an AbstractTableLocationProvider.scheduleTableLocationRefresh
(AbstractTableLocation tableLocation) Schedule refresh for an AbstractTableLocation.void
shutdown()
Shutdown the service.void
Submit a one-time task to be run asynchronously.
-
Field Details
-
INSTANCE
-
-
Method Details
-
submitOneTimeAsyncTask
Description copied from interface:TableDataRefreshService
Submit a one-time task to be run asynchronously.- Specified by:
submitOneTimeAsyncTask
in interfaceTableDataRefreshService
- Parameters:
task
- The task to run
-
scheduleTableLocationProviderRefresh
public TableDataRefreshService.CancellableSubscriptionToken scheduleTableLocationProviderRefresh(@NotNull AbstractTableLocationProvider tableLocationProvider) Description copied from interface:TableDataRefreshService
Schedule refresh for an AbstractTableLocationProvider.- Specified by:
scheduleTableLocationProviderRefresh
in interfaceTableDataRefreshService
- Parameters:
tableLocationProvider
- The table location provider- Returns:
- A subscription token to be used for matching, which also supports cancellation
-
scheduleTableLocationRefresh
public TableDataRefreshService.CancellableSubscriptionToken scheduleTableLocationRefresh(@NotNull AbstractTableLocation tableLocation) Description copied from interface:TableDataRefreshService
Schedule refresh for an AbstractTableLocation.- Specified by:
scheduleTableLocationRefresh
in interfaceTableDataRefreshService
- Parameters:
tableLocation
- The table location- Returns:
- A subscription token to be used for matching, which also supports cancellation
-
shutdown
public void shutdown()Description copied from interface:TableDataRefreshService
Shutdown the service. It will no longer be used.- Specified by:
shutdown
in interfaceTableDataRefreshService
-