Record Class SinkDescription
java.lang.Object
java.lang.Record
tech.illuin.pipeline.observer.descriptor.model.SinkDescription
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorHandler
record component.Returns the value of theexecutionWrapper
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.boolean
isAsync()
Returns the value of theisAsync
record component.metrics()
Returns the value of themetrics
record component.sink()
Returns the value of thesink
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SinkDescription
public SinkDescription(String id, Object sink, boolean isAsync, Object executionWrapper, Object errorHandler, Map<String, Metric> metrics) Creates an instance of aSinkDescription
record class.- Parameters:
id
- the value for theid
record componentsink
- the value for thesink
record componentisAsync
- the value for theisAsync
record componentexecutionWrapper
- the value for theexecutionWrapper
record componenterrorHandler
- the value for theerrorHandler
record componentmetrics
- the value for themetrics
record component
-
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
sink
Returns the value of thesink
record component.- Returns:
- the value of the
sink
record component
-
isAsync
public boolean isAsync()Returns the value of theisAsync
record component.- Returns:
- the value of the
isAsync
record component
-
executionWrapper
Returns the value of theexecutionWrapper
record component.- Returns:
- the value of the
executionWrapper
record component
-
errorHandler
Returns the value of theerrorHandler
record component.- Returns:
- the value of the
errorHandler
record component
-
metrics
Returns the value of themetrics
record component.- Returns:
- the value of the
metrics
record component
-