Class DynamicTableDataService
java.lang.Object
io.deephaven.enterprise.tabledataservice.DelegatingTableDataService
io.deephaven.enterprise.tabledataservice.DynamicTableDataService
- All Implemented Interfaces:
TableDataService,TableDataServiceDescriptor
public class DynamicTableDataService
extends DelegatingTableDataService
implements TableDataServiceDescriptor
A TableDataService that can be dynamically updated when the source DataRoutingService changes. Note that the creation
context "belongs" to the owner of this DynamicTableDataService. No consideration is given to making access to it
thread-safe.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicTableDataService(@NotNull String name, TableDataService delegate, TableDataServiceFactory.CreationContext creationContext) Create a new DynamicTableDataService. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Return the CreationContext used to create the current delegate TableDataService.protected TableDataServiceReturns the TableDataService that this instance delegates to.@NotNull StringgetName()voidsetDelegate(@NotNull TableDataService delegate, TableDataServiceFactory.CreationContext creationContext) Replace the delegate TableDataService.Methods inherited from class io.deephaven.enterprise.tabledataservice.DelegatingTableDataService
getRawTableLocationProvider, getTableLocationProvider, reset, reset
-
Constructor Details
-
DynamicTableDataService
public DynamicTableDataService(@NotNull @NotNull String name, TableDataService delegate, TableDataServiceFactory.CreationContext creationContext) Create a new DynamicTableDataService.- Parameters:
name- the name of this TableDataServicedelegate- the TableDataService to delegate to (which can change)creationContext- the collection of services used to create this TableDataService
-
-
Method Details
-
getDelegate
Description copied from class:DelegatingTableDataServiceReturns the TableDataService that this instance delegates to.- Specified by:
getDelegatein classDelegatingTableDataService- Returns:
- the delegate TableDataService
-
setDelegate
public void setDelegate(@NotNull @NotNull TableDataService delegate, @NotNull TableDataServiceFactory.CreationContext creationContext) Replace the delegate TableDataService. The new delegate should have the same id as the old one.- Parameters:
delegate- the new delegate TableDataServicecreationContext- the CreationContext corresponding to the new delegate
-
getName
- Specified by:
getNamein interfaceTableDataService- Overrides:
getNamein classDelegatingTableDataService
-
getCreationContext
Return the CreationContext used to create the current delegate TableDataService. This context "belongs" to the owner of this DynamicTableDataService, and should only be set by that class when updating the delegate. No consideration is given to making access to it thread-safe. -
describe
- Specified by:
describein interfaceTableDataService- Overrides:
describein classDelegatingTableDataService
-