Simplify ClusterEnvironment configuration
Description
Environment
None
Gerrit Reviews
None
Release Notes Description
None
Activity
Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee

Reporter

Story Points
1
Fix versions
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty Incident
PagerDuty

PagerDuty Incident
Sentry
Linked Issues
Sentry
Linked Issues
Zendesk Support
Linked Tickets
Zendesk Support

Linked Tickets
Created February 5, 2022 at 12:10 AM
Updated February 7, 2022 at 5:00 PM
Resolved February 7, 2022 at 5:00 PM
Suggested release note text:
Most of the Java SDK's configuration options are related to the cluster environment. Historically this has meant that if you wanted to change any of the default options, you needed to create a ClusterEnvironment and remember to shut it down after the client disconnects, even if you're not sharing the environment between clusters.
This change adds a new method that lets you configure the environment without having to manage it yourself:
ClusterOptions.environment(Consumer<ClusterEnvironment.Builder>)
Example usage: