Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for SSE heartbeats #22

Merged
merged 16 commits into from
Dec 20, 2018
Merged

Added support for SSE heartbeats #22

merged 16 commits into from
Dec 20, 2018

Conversation

asgeirn
Copy link
Contributor

@asgeirn asgeirn commented Oct 19, 2018

This feature adds periodic heartbeat events to the SSE streams. It requires adapters to update to SSE libraries supporting empty events.

FINTLabs/fint-sse#1

FINTLabs/Fint.Sse#3

@asgeirn asgeirn changed the title Added support for #17 Added support for SSE heartbeats Oct 19, 2018
@coveralls
Copy link

coveralls commented Oct 19, 2018

Coverage Status

Coverage increased (+0.5%) to 95.2% when pulling 693beac on heartbeat into 217193b on master.

@Scheduled(initialDelay = 15000, fixedRateString = "${fint.provider.sse.heartbeat:15000}")
public void sendHeartbeat() {
log.debug("Heartbeat");
Multimap<String, FintSseEmitter> toBeRemoved = MultimapBuilder.hashKeys().linkedListValues().build();
Copy link
Contributor

Choose a reason for hiding this comment

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

MultimapBuilder gives me a warning in intellij:
MultimapBuilder is marked unstable

Might not be a problem? I like the toBeRemoved.forEach... syntax

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's due to the @Beta annotation on that method. Shouldn't be a problem.

Copy link
Contributor

Choose a reason for hiding this comment

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

Great, just merge it when you are ready.

@asgeirn asgeirn merged commit 956aee7 into master Dec 20, 2018
@asgeirn asgeirn deleted the heartbeat branch December 20, 2018 09:38
@asgeirn asgeirn mentioned this pull request Dec 20, 2018
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.

3 participants