Interface SinkLifecycleEvent
- All Known Implementing Classes:
SinkLifecycleEvent.SinkDeleted,SinkLifecycleEvent.SinkRenamed
public sealed interface SinkLifecycleEvent
permits SinkLifecycleEvent.SinkRenamed, SinkLifecycleEvent.SinkDeleted
Sealed interface representing lifecycle events for data sinks in the store-and-forward system.
These events allow flavor-scoped sink operations, ensuring that changes to a sink in one subsystem (e.g., tag history) do not inadvertently affect pipelines in other subsystems (e.g., alarm journal or audit).
- Since:
- 8.3.4
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordEvent indicating that a sink has been deleted.static final recordEvent indicating that a sink has been renamed. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionsinkDeleted(DataSink<?> sink) Creates aSinkLifecycleEvent.SinkDeletedevent by extracting the storage key, flavor, and engine-bound status from the sink.sinkRenamed(DataSink<?> sink, String newSinkId) Creates aSinkLifecycleEvent.SinkRenamedevent by extracting the storage key and flavor from the sink.
-
Method Details
-
sinkRenamed
Creates aSinkLifecycleEvent.SinkRenamedevent by extracting the storage key and flavor from the sink.- Parameters:
sink- the sink being renamednewSinkId- the new sink identifier- Returns:
- a new SinkRenamed event
-
sinkDeleted
Creates aSinkLifecycleEvent.SinkDeletedevent by extracting the storage key, flavor, and engine-bound status from the sink.- Parameters:
sink- the sink being deleted- Returns:
- a new SinkDeleted event
- Since:
- 8.3.5
-