Class ExecutorTableDataRefreshService
java.lang.Object
io.deephaven.engine.table.impl.locations.util.ExecutorTableDataRefreshService
- All Implemented Interfaces:
TableDataRefreshService
TableDataRefreshService implementation that uses a ScheduledThreadPoolExecutor.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.impl.locations.util.TableDataRefreshService
TableDataRefreshService.CancellableSubscriptionToken, TableDataRefreshService.Helper, TableDataRefreshService.Null -
Constructor Summary
ConstructorsConstructorDescriptionExecutorTableDataRefreshService(@NotNull String name, long tableLocationProviderRefreshIntervalMillis, long tableLocationRefreshIntervalMillis, int threadPoolSize) -
Method Summary
Modifier and TypeMethodDescriptionscheduleTableLocationProviderRefresh(@NotNull AbstractTableLocationProvider tableLocationProvider) Schedule run for an AbstractTableLocationProvider using an implementation-defined default refresh intervalscheduleTableLocationProviderRefresh(@NotNull AbstractTableLocationProvider tableLocationProvider, long refreshIntervalMillis) 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 refreshIntervalMillis) Schedule run for an AbstractTableLocation.voidsubmitOneTimeAsyncTask(@NotNull Runnable task) Submit a one-time task to be run asynchronously.
-
Constructor Details
-
ExecutorTableDataRefreshService
public ExecutorTableDataRefreshService(@NotNull @NotNull String name, long tableLocationProviderRefreshIntervalMillis, long tableLocationRefreshIntervalMillis, int threadPoolSize)
-
-
Method Details
-
submitOneTimeAsyncTask
Description copied from interface:TableDataRefreshServiceSubmit a one-time task to be run asynchronously.- Specified by:
submitOneTimeAsyncTaskin interfaceTableDataRefreshService- Parameters:
task- The task to run
-
scheduleTableLocationProviderRefresh
public TableDataRefreshService.CancellableSubscriptionToken scheduleTableLocationProviderRefresh(@NotNull @NotNull AbstractTableLocationProvider tableLocationProvider) Description copied from interface:TableDataRefreshServiceSchedule run for an AbstractTableLocationProvider using an implementation-defined default refresh interval- Specified by:
scheduleTableLocationProviderRefreshin interfaceTableDataRefreshService- Parameters:
tableLocationProvider- The table location provider- Returns:
- A subscription token to be used for matching, which also supports cancellation
-
scheduleTableLocationProviderRefresh
public TableDataRefreshService.CancellableSubscriptionToken scheduleTableLocationProviderRefresh(@NotNull @NotNull AbstractTableLocationProvider tableLocationProvider, long refreshIntervalMillis) Description copied from interface:TableDataRefreshServiceSchedule run for an AbstractTableLocationProvider.- Specified by:
scheduleTableLocationProviderRefreshin interfaceTableDataRefreshService- Parameters:
tableLocationProvider- The table location providerrefreshIntervalMillis- The interval in milliseconds between refreshes- Returns:
- A subscription token to be used for matching, which also supports cancellation
-
scheduleTableLocationRefresh
public TableDataRefreshService.CancellableSubscriptionToken scheduleTableLocationRefresh(@NotNull @NotNull AbstractTableLocation tableLocation) Description copied from interface:TableDataRefreshServiceSchedule run for an AbstractTableLocation using an implementation-defined default refresh interval- Specified by:
scheduleTableLocationRefreshin interfaceTableDataRefreshService- Parameters:
tableLocation- The table location- Returns:
- A subscription token to be used for matching, which also supports cancellation
-
scheduleTableLocationRefresh
public TableDataRefreshService.CancellableSubscriptionToken scheduleTableLocationRefresh(@NotNull @NotNull AbstractTableLocation tableLocation, long refreshIntervalMillis) Description copied from interface:TableDataRefreshServiceSchedule run for an AbstractTableLocation.- Specified by:
scheduleTableLocationRefreshin interfaceTableDataRefreshService- Parameters:
tableLocation- The table locationrefreshIntervalMillis- The interval in milliseconds between refreshes- Returns:
- A subscription token to be used for matching, which also supports cancellation
-