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 aEventStreamConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionbatch()
Returns the value of thebatch
record component.static EventStreamConfig
createDefault
(String sourceType) static EventStreamEncoder.Config
boolean
enabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.filter()
Returns the value of thefilter
record component.handlers()
Returns the value of thehandlers
record component.final int
hashCode()
Returns a hash code value for this object.onError()
Returns the value of theonError
record component.source()
Returns the value of thesource
record component.Returns the value of thesourceEncoder
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransform
record component.Returns the value of thetransformEncoder
record 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 aEventStreamConfig
record class.- Parameters:
enabled
- the value for theenabled
record componentsource
- the value for thesource
record componentsourceEncoder
- the value for thesourceEncoder
record componenthandlers
- the value for thehandlers
record componentbatch
- the value for thebatch
record componentfilter
- the value for thefilter
record componenttransform
- the value for thetransform
record componenttransformEncoder
- the value for thetransformEncoder
record componentonError
- the value for theonError
record 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 theenabled
record component.- Returns:
- the value of the
enabled
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
sourceEncoder
Returns the value of thesourceEncoder
record component.- Returns:
- the value of the
sourceEncoder
record component
-
handlers
Returns the value of thehandlers
record component.- Returns:
- the value of the
handlers
record component
-
batch
Returns the value of thebatch
record component.- Returns:
- the value of the
batch
record component
-
filter
Returns the value of thefilter
record component.- Returns:
- the value of the
filter
record component
-
transform
Returns the value of thetransform
record component.- Returns:
- the value of the
transform
record component
-
transformEncoder
Returns the value of thetransformEncoder
record component.- Returns:
- the value of the
transformEncoder
record component
-
onError
Returns the value of theonError
record component.- Returns:
- the value of the
onError
record component
-