Package io.deephaven.enterprise.replay
Class ComposableTableReplayConfiguration
java.lang.Object
io.deephaven.enterprise.replay.ComposableTableReplayConfiguration
- All Implemented Interfaces:
- TableReplayConfiguration
A concrete implementation of the replay configuration for one table.
 
This version is composable, in in that when a particular value is not specified, we can fall through to a default configuration.
- 
Constructor SummaryConstructorsConstructorDescriptionComposableTableReplayConfiguration(@Nullable Boolean useIntraday, @Nullable String timestampColumnName, @Nullable Boolean enabled) Create a table replay configuration.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanenabled()Should the table be replayed?@Nullable BooleanShould the table be replayed?@Nullable BooleanShould the replayed table be sourced from db.liveTable?@Nullable StringWhat column in the source table should be used for the replay timestamp.booleanShould the replayed table be sourced from db.liveTable?withDefaults(@NotNull ComposableTableReplayConfiguration defaultConfiguration) Apply the given default configuration to this configuration; and return a possibly new configuration representing this configuration with the defaults.
- 
Constructor Details- 
ComposableTableReplayConfigurationpublic ComposableTableReplayConfiguration(@Nullable @Nullable Boolean useIntraday, @Nullable @Nullable String timestampColumnName, @Nullable @Nullable Boolean enabled) Create a table replay configuration.- Parameters:
- useIntraday- should the replayed table be read using liveTable instead of historicalTable (null means to use the default).
- timestampColumnName- the name of the timestamp column to use (null means to use the default)
- enabled- if this table should be replayed (null means to use the default)
 
 
- 
- 
Method Details- 
maybeUseIntradayShould the replayed table be sourced from db.liveTable?- Returns:
- true if the replayed table should be sourced from db.liveTable; false if the table should be sourced from db.historicalTable; and null if undefined.
 
- 
timestampColumnNameWhat column in the source table should be used for the replay timestamp.- Specified by:
- timestampColumnNamein interface- TableReplayConfiguration
- Returns:
- the name of the column to use for replay timestamps, null if undefined.
 
- 
maybeEnabledShould the table be replayed?- Returns:
- true if the table should be replayed; false if it should not be replayed
 
- 
withDefaultspublic ComposableTableReplayConfiguration withDefaults(@NotNull @NotNull ComposableTableReplayConfiguration defaultConfiguration) Apply the given default configuration to this configuration; and return a possibly new configuration representing this configuration with the defaults.- Parameters:
- defaultConfiguration- the default configuration
- Returns:
- this configuration merged with the default configuration's values for undefined properties
 
- 
useIntradaypublic boolean useIntraday()Description copied from interface:TableReplayConfigurationShould the replayed table be sourced from db.liveTable?- Specified by:
- useIntradayin interface- TableReplayConfiguration
- Returns:
- true if the replayed table should be sourced from db.liveTable; false if the table should be sourced from db.historicalTable
 
- 
enabledpublic boolean enabled()Description copied from interface:TableReplayConfigurationShould the table be replayed?- Specified by:
- enabledin interface- TableReplayConfiguration
- Returns:
- true if the table should be replayed; false if it should not be replayed
 
 
-