Skip to content

[#3083] Configure application wide Clock#4592

Open
jangalinski wants to merge 6 commits into
mainfrom
feature/3083/clockutils
Open

[#3083] Configure application wide Clock#4592
jangalinski wants to merge 6 commits into
mainfrom
feature/3083/clockutils

Conversation

@jangalinski
Copy link
Copy Markdown
Collaborator

@jangalinski jangalinski commented May 20, 2026

  • allows to get/set clock on a central util class without directly working with a static field
  • adjusted all tests
  • introduced timestamp-less constructor so only GenericEventMessage needs to know about the clock
  • todo: also register in component registry

This Pr resolves #3083.

@jangalinski jangalinski added this to the Release 5.2.0 milestone May 20, 2026
@jangalinski jangalinski self-assigned this May 20, 2026
@jangalinski jangalinski added the Type: Feature Use to signal an issue is completely new to the project. label May 20, 2026
- allows to get/set clock on a central util class without directly working with a static field
- adjusted all tests
- introduced timestamp-less constructor so only GenericEventMessage needs to know about the clock
- todo: also register in component registry
@jangalinski jangalinski force-pushed the feature/3083/clockutils branch from c73f34f to ad980de Compare May 20, 2026 07:22
@smcvb smcvb added the Priority 2: Should High priority. Ideally, these issues are part of the release they’re assigned to. label May 20, 2026
Copy link
Copy Markdown
Contributor

@smcvb smcvb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concerns have been addressed, hence I'm approving this pull request.

Copy link
Copy Markdown
Contributor

@MateuszNaKodach MateuszNaKodach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can merge that and then work on the registry in the following PRs.

@jangalinski jangalinski marked this pull request as ready for review May 20, 2026 11:49
@jangalinski jangalinski requested a review from a team as a code owner May 20, 2026 11:49
@jangalinski jangalinski requested review from hjohn, laura-devriendt-lemon and zambrovski and removed request for a team May 20, 2026 11:49
- first decied to leave in to not break any public facing parts, but its been removed on GenericEventMessage as well and its better to stay consistent
int gapTimeout,
Logger logger
Logger logger,
@Deprecated(forRemoval = true, since = "5.2.0")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps GitHub is acting up...but the Clock wasn't here before your changes, right?

return TrackingToken.fromContext(eventEntry).orElse(null);
}
return TrackingToken.fromContext(eventEntry).orElse(null);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation seems off to me here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority 2: Should High priority. Ideally, these issues are part of the release they’re assigned to. Type: Feature Use to signal an issue is completely new to the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configure application wide Clock

3 participants