Record Class EventHandlingProperties.ProcessorSettings
java.lang.Object
java.lang.Record
com.opencqrs.framework.eventhandler.EventHandlingProperties.ProcessorSettings
- Record Components:
fetch- Event fetching settings.lifeCycle- Life-cycle configuration settings.progress- Progress tracking configuration settings.sequence- Event sequence resolution configuration.retry- Error retry configuration.
- Enclosing class:
EventHandlingProperties
public static record EventHandlingProperties.ProcessorSettings(EventHandlingProperties.ProcessorSettings.Fetch fetch, EventHandlingProperties.ProcessorSettings.LifeCycle lifeCycle, EventHandlingProperties.ProcessorSettings.Progress progress, EventHandlingProperties.ProcessorSettings.Sequencing sequence, EventHandlingProperties.ProcessorSettings.Retry retry)
extends Record
Configuration settings for an instance of
EventHandlingProcessor.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConfigures event stream fetching.static final recordConfigures life-cycle registration.static final recordConfigures whichProgressTrackerto use.static final recordError handling retry configuration settings.static final recordConfigures whichEventSequenceResolverto use. -
Constructor Summary
ConstructorsConstructorDescriptionProcessorSettings(EventHandlingProperties.ProcessorSettings.Fetch fetch, EventHandlingProperties.ProcessorSettings.LifeCycle lifeCycle, EventHandlingProperties.ProcessorSettings.Progress progress, EventHandlingProperties.ProcessorSettings.Sequencing sequence, EventHandlingProperties.ProcessorSettings.Retry retry) Creates an instance of aProcessorSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fetch()Returns the value of thefetchrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelifeCyclerecord component.progress()Returns the value of theprogressrecord component.retry()Returns the value of theretryrecord component.sequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcessorSettings
public ProcessorSettings(EventHandlingProperties.ProcessorSettings.Fetch fetch, EventHandlingProperties.ProcessorSettings.LifeCycle lifeCycle, EventHandlingProperties.ProcessorSettings.Progress progress, EventHandlingProperties.ProcessorSettings.Sequencing sequence, EventHandlingProperties.ProcessorSettings.Retry retry) Creates an instance of aProcessorSettingsrecord class.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
fetch
Returns the value of thefetchrecord component.- Returns:
- the value of the
fetchrecord component
-
lifeCycle
Returns the value of thelifeCyclerecord component.- Returns:
- the value of the
lifeCyclerecord component
-
progress
Returns the value of theprogressrecord component.- Returns:
- the value of the
progressrecord component
-
sequence
Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
retry
Returns the value of theretryrecord component.- Returns:
- the value of the
retryrecord component
-