Class DebounceStorageStrategy
java.lang.Object
com.inductiveautomation.historian.gateway.api.storage.strategy.PointStorageStrategy
com.inductiveautomation.historian.gateway.api.storage.strategy.DebounceStorageStrategy
A strategy for debouncing and batching temporal point storage operations.
This class extends PointStorageStrategy and provides mechanisms for managing temporal
point queues, scheduling debounced processing, and handling shutdown scenarios.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.historian.gateway.api.storage.strategy.PointStorageStrategy
PointStorageStrategy.Listener -
Method Summary
Modifier and TypeMethodDescriptionstatic DebounceStorageStrategycreate(DebounceBatchConfig config) Creates a new instance ofDebounceStorageStrategywith the specified configuration.static DebounceStorageStrategycreateDefault(String processorName) Creates a default instance ofDebounceStorageStrategywith a specified processor name.processAtomic(List<AtomicPoint<?>> atomicPoints) Processes a list of atomic points asynchronously.<C extends ChangePoint<?>>
CompletionStage<StorageResult<C>>processChanges(List<C> changePoints) Processes a list of change points asynchronously.<C extends ComplexPoint<?>>
CompletionStage<StorageResult<C>>processComplex(List<C> complexPoints) Processes a list of complex points asynchronously.voidshutdown()Shuts down the storage strategy, preventing further processing of points.Methods inherited from class com.inductiveautomation.historian.gateway.api.storage.strategy.PointStorageStrategy
forwardPoints, onPointsReady
-
Method Details
-
create
Creates a new instance ofDebounceStorageStrategywith the specified configuration.This method initializes the strategy using the provided
DebounceBatchConfig.- Parameters:
config- The configuration for the debounce batch strategy.- Returns:
- A new
DebounceStorageStrategyinstance.
-
createDefault
Creates a default instance ofDebounceStorageStrategywith a specified processor name.This method uses a default configuration generated for the given processor name.
- Parameters:
processorName- The name of the processor for which the default configuration is created.- Returns:
- A new
DebounceStorageStrategyinstance with the default configuration.
-
processAtomic
public CompletionStage<StorageResult<AtomicPoint<?>>> processAtomic(List<AtomicPoint<?>> atomicPoints) Description copied from class:PointStorageStrategyProcesses a list of atomic points asynchronously.- Specified by:
processAtomicin classPointStorageStrategy- Parameters:
atomicPoints- The list of atomic points to process.- Returns:
- A CompletionStage representing the result of the storage operation.
-
processComplex
public <C extends ComplexPoint<?>> CompletionStage<StorageResult<C>> processComplex(List<C> complexPoints) Description copied from class:PointStorageStrategyProcesses a list of complex points asynchronously.- Specified by:
processComplexin classPointStorageStrategy- Type Parameters:
C- The type of complex points.- Parameters:
complexPoints- The list of complex points to process.- Returns:
- A CompletionStage representing the result of the storage operation.
-
processChanges
public <C extends ChangePoint<?>> CompletionStage<StorageResult<C>> processChanges(List<C> changePoints) Description copied from class:PointStorageStrategyProcesses a list of change points asynchronously.- Specified by:
processChangesin classPointStorageStrategy- Type Parameters:
C- The type of change points.- Parameters:
changePoints- The list of change points to process.- Returns:
- A CompletionStage representing the result of the storage operation.
-
shutdown
public void shutdown()Description copied from class:PointStorageStrategyShuts down the storage strategy, preventing further processing of points.- Specified by:
shutdownin classPointStorageStrategy
-