Skip to content

[Bug] config: Typo on spring.modulith.events.staleness.check-interval property #1757

Description

@johnnyrichard-nn

Documentation says (version 2.1.0):

Property Default value Description
spring.modulith.events.staleness.check-interval Duration.ofMinutes(1) The interval at which the Staleness Monitor runs to mark stale event publications as failed.

On source code this property has different name (spring.modulith.events.staleness.check-intervall).

See:

{
"name": "spring.modulith.events.staleness.check-intervall",
"type": "java.time.Duration",
"description": "Configures the {@link Duration} to check for stale event publications. Defaults to one minute.",
"sourceType": "org.springframework.modulith.events.config.StalenessProperties"
},

/**
* Configures the {@link Duration} to check for stale event publications. Defaults to one minute.
*/
private final Duration checkIntervall;
@ConstructorBinding
StalenessProperties(
@Nullable Duration published,
@Nullable Duration processing,
@Nullable Duration resubmitted,
@Nullable Duration resubmission,
@Nullable Duration checkIntervall) {
this.published = published == null ? Duration.ZERO : published;
this.processing = processing == null ? Duration.ZERO : processing;
this.resubmitted = resubmitted == null ? resubmission == null ? Duration.ZERO : resubmission : resubmitted;
this.checkIntervall = checkIntervall == null ? Duration.ofMinutes(1) : checkIntervall;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions