Record Class SinkLifecycleEvent.SinkRenamed
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.storeforward.SinkLifecycleEvent.SinkRenamed
- Record Components:
oldStorageKey- the storage key containing the engine ID and old sink IDnewSinkId- the new sink IDflavor- the flavor identifying which pipelines are affected by this rename
- All Implemented Interfaces:
SinkLifecycleEvent
- Enclosing interface:
- SinkLifecycleEvent
public static record SinkLifecycleEvent.SinkRenamed(StorageKey oldStorageKey, String newSinkId, PersistentFlavor<?> flavor)
extends Record
implements SinkLifecycleEvent
Event indicating that a sink has been renamed. The rename is scoped to pipelines matching the
specified flavor.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.gateway.storeforward.SinkLifecycleEvent
SinkLifecycleEvent.SinkRenamed -
Constructor Summary
ConstructorsConstructorDescriptionSinkRenamed(StorageKey oldStorageKey, String newSinkId, PersistentFlavor<?> flavor) Validates all parameters are non-null and newSinkId is not blank. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.flavor()Returns the value of theflavorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenewSinkIdrecord component.Returns the value of theoldStorageKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SinkRenamed
Validates all parameters are non-null and newSinkId is not blank.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
oldStorageKey
Returns the value of theoldStorageKeyrecord component.- Returns:
- the value of the
oldStorageKeyrecord component
-
newSinkId
Returns the value of thenewSinkIdrecord component.- Returns:
- the value of the
newSinkIdrecord component
-
flavor
Returns the value of theflavorrecord component.- Returns:
- the value of the
flavorrecord component
-