Skip to content

Wake the poller up when the stream is registered - #45

Merged
thomasdarimont merged 2 commits into
mainfrom
gh-43-wake-poller-on-registration
Oct 6, 2026
Merged

thomasdarimont merged 2 commits into
mainfrom
gh-43-wake-poller-on-registration

Conversation

@thomasdarimont

Copy link
Copy Markdown
Collaborator

SsfStreamRegistrar tells its listeners once the stream is registered,
SsfPoller.wakeUp() ends the pause between two polls, and SsfTransmitter
wires the two, so the first poll follows the registration at once
instead of up to an interval later. The pause is a condition wait now
rather than a sleep.

Also fixes the JUnit module configuration for running tests from the IDE

Closes #43

SsfStreamRegistrar tells its listeners once the stream is registered,
SsfPoller.wakeUp() ends the pause between two polls, and SsfTransmitter
wires the two, so the first poll follows the registration at once
instead of up to an interval later. The pause is a condition wait now
rather than a sleep.

Closes #43

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
IntelliJ runs the tests of an explicit module with JUnit on the module
path, where surefire keeps it on the class path, so the IDE failed with
"does not opens ... to module org.junit.platform.commons" since the
module descriptors came in. A profile active only in the IDE hands
surefire an argLine with an add-opens per test package, which the IDE
copies into its run configurations; Maven itself is unaffected.

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
@thomasdarimont
thomasdarimont merged commit e80e998 into main Oct 6, 2026
10 checks passed
@thomasdarimont
thomasdarimont deleted the gh-43-wake-poller-on-registration branch October 6, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SsfStreamRegistrar should notify listener when stream is registered

1 participant