Interface TableDataRefreshService
- All Known Implementing Classes:
ExecutorTableDataRefreshService,TableDataRefreshService.Null
public interface TableDataRefreshService
For TableDataService and related components, this allows a simple implementation for subscription support.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA subscription token interface with cancellation support.static final classStatic helper class for holding and building the shared instance.static final class"Null" instance, intended for unit tests and other standalone scenarios. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableDataRefreshServiceGet (and possibly construct) a shared instance.scheduleTableLocationProviderRefresh(@NotNull AbstractTableLocationProvider tableLocationProvider) Schedule run for an AbstractTableLocationProvider using an implementation-defined default refresh intervalscheduleTableLocationProviderRefresh(@NotNull AbstractTableLocationProvider tableLocationProvider, long refreshIntervalMs) Schedule run for an AbstractTableLocationProvider.scheduleTableLocationRefresh(@NotNull AbstractTableLocation tableLocation) Schedule run for an AbstractTableLocation using an implementation-defined default refresh intervalscheduleTableLocationRefresh(@NotNull AbstractTableLocation tableLocation, long refreshIntervalMs) Schedule run for an AbstractTableLocation.voidsubmitOneTimeAsyncTask(@NotNull Runnable task) Submit a one-time task to be run asynchronously.
-
Method Details
-
submitOneTimeAsyncTask
Submit a one-time task to be run asynchronously.- Parameters:
task- The task to run
-
scheduleTableLocationProviderRefresh
TableDataRefreshService.CancellableSubscriptionToken scheduleTableLocationProviderRefresh(@NotNull @NotNull AbstractTableLocationProvider tableLocationProvider) Schedule run for an AbstractTableLocationProvider using an implementation-defined default refresh interval- Parameters:
tableLocationProvider- The table location provider- Returns:
- A subscription token to be used for matching, which also supports cancellation
-
scheduleTableLocationProviderRefresh
TableDataRefreshService.CancellableSubscriptionToken scheduleTableLocationProviderRefresh(@NotNull @NotNull AbstractTableLocationProvider tableLocationProvider, long refreshIntervalMs) Schedule run for an AbstractTableLocationProvider.- Parameters:
tableLocationProvider- The table location providerrefreshIntervalMs- The interval in milliseconds between refreshes- Returns:
- A subscription token to be used for matching, which also supports cancellation
-
scheduleTableLocationRefresh
TableDataRefreshService.CancellableSubscriptionToken scheduleTableLocationRefresh(@NotNull @NotNull AbstractTableLocation tableLocation) Schedule run for an AbstractTableLocation using an implementation-defined default refresh interval- Parameters:
tableLocation- The table location- Returns:
- A subscription token to be used for matching, which also supports cancellation
-
scheduleTableLocationRefresh
TableDataRefreshService.CancellableSubscriptionToken scheduleTableLocationRefresh(@NotNull @NotNull AbstractTableLocation tableLocation, long refreshIntervalMs) Schedule run for an AbstractTableLocation.- Parameters:
tableLocation- The table locationrefreshIntervalMs- The interval in milliseconds between refreshes- Returns:
- A subscription token to be used for matching, which also supports cancellation
-