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

prepare 2.5.0 release #63

Merged
merged 130 commits into from
Jan 14, 2022
Merged

prepare 2.5.0 release #63

merged 130 commits into from
Jan 14, 2022

Conversation

LaunchDarklyReleaseBot
Copy link
Contributor

[2.5.0] - 2022-01-12

Added:

  • EventSource.Builder.maxTasksInFlight allows setting a limit on how many asynchronous event handler calls can be queued for dispatch at any given time. (Thanks, thomaslee!)
  • EventSource.awaitClosed provides confirmation that all asynchronous event handler calls have been completed after stopping the EventSource. (Thanks, thomaslee!)

Changed:

  • The build has been updated to use Gradle 7.
  • The CI build now includes testing in Java 17.

eli-darkly and others added 30 commits December 11, 2018 14:26
# Conflicts:
#	src/main/java/com/launchdarkly/eventsource/EventSource.java
allow endpoint to be specified as either URI or HttpUrl
# Conflicts:
#	CHANGELOG.md
#	gradle.properties
replace SSL-specific config method with general-purpose HTTP config method
# Conflicts:
#	src/main/java/com/launchdarkly/eventsource/EventSource.java
omit default header value if there's a custom value
eli-darkly and others added 24 commits May 6, 2021 15:09
fix logic for shutting down after an unrecoverable error
use new stream-reading implementation to support CR-only line endings
* Bounded queue for the EventHandler thread

The unbounded queue fronting the 'event' thread can cause trouble when the
EventHandler is unable to keep up with the workload. This can lead to heap
exhaustion, GC issues and failure modes that are generally considered "bad".

Band-aid over this with a semaphore to limit the number of tasks in the queue.
The semaphore is opt-in and disabled by default to avoid any nasty surprises
for folks upgrading.

Also add 'EventSource.awaitClosed()' to allow users to wait for underlying
thread pools to completely shut down. We can't know if it's safe to clean
up resources used by the EventHandler thread if we can't be certain that it
has completely terminated.

* Address checkstyle griping in StubServer

* Fix JavaDoc issue

* Tighten up exception handling

Co-authored-by: Eli Bishop <eli@launchdarkly.com>
@LaunchDarklyReleaseBot LaunchDarklyReleaseBot merged commit e30d3c8 into master Jan 14, 2022
@LaunchDarklyReleaseBot LaunchDarklyReleaseBot deleted the release-2.5.0 branch January 14, 2022 01:09
LaunchDarklyReleaseBot pushed a commit that referenced this pull request Dec 2, 2022
remove usage of Duration for Android compatibility in new major version
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.

6 participants