Record Class HandlerConfig
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.config.HandlerConfig
- Record Components:
enabled- True, Handler will process events. False, Handler will be ignored when processing eventstype- Type of registered Handlerconfig- Configuration specific to Handler type. If null, typed Handler will create appropriate defaults.failureStrategy- Failure strategy configuration
public record HandlerConfig(boolean enabled, String type, @Nullable com.inductiveautomation.ignition.common.gson.JsonObject config, HandlerConfig.FailureConfig failureStrategy)
extends Record
Handler configuration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDefines how to handle Handler failuresstatic final recordDetermines how retries are attempted -
Constructor Summary
ConstructorsConstructorDescriptionHandlerConfig(boolean enabled, String type, com.inductiveautomation.ignition.common.gson.JsonObject config, HandlerConfig.FailureConfig failureStrategy) Creates an instance of aHandlerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.inductiveautomation.ignition.common.gson.JsonObjectconfig()Returns the value of theconfigrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureStrategyrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
HandlerConfig
public HandlerConfig(boolean enabled, String type, @Nullable com.inductiveautomation.ignition.common.gson.JsonObject config, HandlerConfig.FailureConfig failureStrategy) Creates an instance of aHandlerConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componenttype- the value for thetyperecord componentconfig- the value for theconfigrecord componentfailureStrategy- the value for thefailureStrategyrecord 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 '=='. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
config
@Nullable public com.inductiveautomation.ignition.common.gson.JsonObject config()Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
failureStrategy
Returns the value of thefailureStrategyrecord component.- Returns:
- the value of the
failureStrategyrecord component
-