Record Class EventStreamConfig
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.config.EventStreamConfig
- Record Components:
enabled- True, starts the Event Stream when created. False, will create the Event Stream but won't be started.source- Source configurationhandlers- Configurations for multiple Handlers, order determines the processing order.batch- Batch configurationfilter- Filter configurationtransform- Transform configurationonError- OnError configuration
public record EventStreamConfig(boolean enabled, SourceConfig source, EventStreamEncoder.Config sourceEncoder, List<HandlerConfig> handlers, BatchConfig batch, FilterConfig filter, TransformConfig transform, EventStreamEncoder.Config transformEncoder, OnErrorConfig onError)
extends Record
Contains full configuration required to start an Event Stream
-
Constructor Summary
ConstructorsConstructorDescriptionEventStreamConfig(boolean enabled, SourceConfig source, EventStreamEncoder.Config sourceEncoder, List<HandlerConfig> handlers, BatchConfig batch, FilterConfig filter, TransformConfig transform, EventStreamEncoder.Config transformEncoder, OnErrorConfig onError) Creates an instance of aEventStreamConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Returns the value of thebatchrecord component.static EventStreamConfigcreateDefault(String sourceType) static EventStreamEncoder.Configbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.handlers()Returns the value of thehandlersrecord component.final inthashCode()Returns a hash code value for this object.onError()Returns the value of theonErrorrecord component.source()Returns the value of thesourcerecord component.Returns the value of thesourceEncoderrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.Returns the value of thetransformEncoderrecord component.
-
Constructor Details
-
EventStreamConfig
public EventStreamConfig(boolean enabled, SourceConfig source, EventStreamEncoder.Config sourceEncoder, List<HandlerConfig> handlers, BatchConfig batch, FilterConfig filter, TransformConfig transform, EventStreamEncoder.Config transformEncoder, OnErrorConfig onError) Creates an instance of aEventStreamConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componentsource- the value for thesourcerecord componentsourceEncoder- the value for thesourceEncoderrecord componenthandlers- the value for thehandlersrecord componentbatch- the value for thebatchrecord componentfilter- the value for thefilterrecord componenttransform- the value for thetransformrecord componenttransformEncoder- the value for thetransformEncoderrecord componentonError- the value for theonErrorrecord component
-
-
Method Details
-
createDefault
-
createDefaultEncoderConfig
-
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
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
sourceEncoder
Returns the value of thesourceEncoderrecord component.- Returns:
- the value of the
sourceEncoderrecord component
-
handlers
Returns the value of thehandlersrecord component.- Returns:
- the value of the
handlersrecord component
-
batch
Returns the value of thebatchrecord component.- Returns:
- the value of the
batchrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
transform
Returns the value of thetransformrecord component.- Returns:
- the value of the
transformrecord component
-
transformEncoder
Returns the value of thetransformEncoderrecord component.- Returns:
- the value of the
transformEncoderrecord component
-
onError
Returns the value of theonErrorrecord component.- Returns:
- the value of the
onErrorrecord component
-