Class ImmutableStorageStrategyMetrics

java.lang.Object
com.inductiveautomation.historian.gateway.api.storage.strategy.StorageStrategyMetrics
com.inductiveautomation.historian.gateway.api.storage.strategy.ImmutableStorageStrategyMetrics

public final class ImmutableStorageStrategyMetrics extends StorageStrategyMetrics
An immutable StorageStrategyMetrics snapshot holding the queued count and oldest dwell directly. An accumulating PointStorageStrategy samples its queue and returns one from PointStorageStrategy.metrics().
Since:
2027.02
  • Constructor Details

    • ImmutableStorageStrategyMetrics

      public ImmutableStorageStrategyMetrics(int queuedPointCount, long oldestDwellMillis)
      Creates a snapshot for a strategy that does not batch.
      Parameters:
      queuedPointCount - the points accumulating; >= 0
      oldestDwellMillis - the dwell time of the oldest queued batch in milliseconds; >= 0
    • ImmutableStorageStrategyMetrics

      public ImmutableStorageStrategyMetrics(int queuedPointCount, long oldestDwellMillis, int batchCapacity)
      Creates a snapshot for a batching strategy.
      Parameters:
      queuedPointCount - the points accumulating; >= 0
      oldestDwellMillis - the dwell time of the oldest queued batch in milliseconds; >= 0
      batchCapacity - the most points one flush may carry now; > 0
  • Method Details