Class ComposableTableReplayConfiguration

java.lang.Object
io.deephaven.enterprise.replay.ComposableTableReplayConfiguration
All Implemented Interfaces:
TableReplayConfiguration

public class ComposableTableReplayConfiguration extends Object implements 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 Details

    • ComposableTableReplayConfiguration

      public 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

    • maybeUseIntraday

      @Nullable public @Nullable Boolean maybeUseIntraday()
      Should 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.
    • timestampColumnName

      @Nullable public @Nullable String timestampColumnName()
      What column in the source table should be used for the replay timestamp.
      Specified by:
      timestampColumnName in interface TableReplayConfiguration
      Returns:
      the name of the column to use for replay timestamps, null if undefined.
    • maybeEnabled

      @Nullable public @Nullable Boolean maybeEnabled()
      Should the table be replayed?
      Returns:
      true if the table should be replayed; false if it should not be replayed
    • withDefaults

      public 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
    • useIntraday

      public boolean useIntraday()
      Description copied from interface: TableReplayConfiguration
      Should the replayed table be sourced from db.liveTable?
      Specified by:
      useIntraday in interface TableReplayConfiguration
      Returns:
      true if the replayed table should be sourced from db.liveTable; false if the table should be sourced from db.historicalTable
    • enabled

      public boolean enabled()
      Description copied from interface: TableReplayConfiguration
      Should the table be replayed?
      Specified by:
      enabled in interface TableReplayConfiguration
      Returns:
      true if the table should be replayed; false if it should not be replayed