Package org.axonframework.messaging
Record Class ScopeAwareProviderSettings
java.lang.Object
java.lang.Record
org.axonframework.messaging.ScopeAwareProviderSettings
- Record Components:
readinessTimeout- how long the provider waits for the configuration to start its event processors before a fired deadline fails and is retried by its deadline manager
Settings of the
LegacyScopeAwareProvider of a configuration.
Register a component of this type to change the defaults:
configurer.componentRegistry(cr -> cr.registerComponent(
ScopeAwareProviderSettings.class,
c -> new ScopeAwareProviderSettings(Duration.ofMinutes(2))
));
Spring Boot applications set the axon.deadline.scope-aware-provider-readiness-timeout property instead.- Since:
- 5.4.0
- Author:
- Jakob Hatzl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScopeAwareProviderSettingsThe settings used when noScopeAwareProviderSettingscomponent is registered: a readiness timeout of 30 seconds. -
Constructor Summary
ConstructorsConstructorDescriptionScopeAwareProviderSettings(Duration readinessTimeout) Validates the settings. -
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.Returns the value of thereadinessTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The settings used when noScopeAwareProviderSettingscomponent is registered: a readiness timeout of 30 seconds.
-
-
Constructor Details
-
ScopeAwareProviderSettings
Validates the settings.- Parameters:
readinessTimeout- how long the provider waits for the configuration to start its event processors
-
-
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). -
readinessTimeout
Returns the value of thereadinessTimeoutrecord component.- Returns:
- the value of the
readinessTimeoutrecord component
-