Record Class HandlerConfig.FailureConfig
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.config.HandlerConfig.FailureConfig
- Record Components:
type- Type of failure strategyretryPolicy- Retry policy to use
- All Implemented Interfaces:
Serializable
- Enclosing class:
HandlerConfig
public static record HandlerConfig.FailureConfig(HandlerConfig.FailureConfig.Type type, @Nullable HandlerConfig.RetryPolicy retryPolicy)
extends Record
implements Serializable
Defines how to handle Handler failures
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HandlerConfig.FailureConfigstatic final HandlerConfig.FailureConfig -
Constructor Summary
ConstructorsConstructorDescriptionFailureConfig(HandlerConfig.FailureConfig.Type type, @Nullable HandlerConfig.RetryPolicy retryPolicy) Creates an instance of aFailureConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable HandlerConfig.RetryPolicyReturns the value of theretryPolicyrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
ABORT
-
IGNORE
-
-
Constructor Details
-
FailureConfig
public FailureConfig(HandlerConfig.FailureConfig.Type type, @Nullable HandlerConfig.RetryPolicy retryPolicy) Creates an instance of aFailureConfigrecord class.- Parameters:
type- the value for thetyperecord componentretryPolicy- the value for theretryPolicyrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
type
-
retryPolicy
Returns the value of theretryPolicyrecord component.- Returns:
- the value of the
retryPolicyrecord component
-