Repository navigation
feat: add AutoCloseable support and configurable retry backoff to clients - #27
Open
fern-api[bot] wants to merge 3 commits into
Open
fern-api[bot] wants to merge 3 commits into
fern-api[bot] wants to merge 3 commits into
Conversation
fern-api
Bot
force-pushed
the
fern-bot/2026-06-10_12-30-03_692
branch
from
June 24, 2026 15:57
16a5786 to
09895f5
Compare
fern-api
Bot
force-pushed
the
fern-bot/2026-06-10_12-30-03_692
branch
from
July 8, 2026 09:49
09895f5 to
0883c08
Compare
fern-api
Bot
force-pushed
the
fern-bot/2026-06-10_12-30-03_692
branch
from
August 4, 2026 12:16
0883c08 to
027d024
Compare
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-java-sdk: 4.23.1
…etry backoff to clients Both `NewscatcherApiClient` and `AsyncNewscatcherApiClient` now implement `AutoCloseable`, enabling use in try-with-resources blocks for proper resource cleanup. The builder classes gain three new optional methods for fine-grained control over exponential backoff retry behavior. Javadoc deduplication across all builder types is also included. Key changes: - `NewscatcherApiClient` and `AsyncNewscatcherApiClient` implement `AutoCloseable` with a `close()` method that shuts down the SDK-owned HTTP client - `NewscatcherApiClientBuilder` and `AsyncNewscatcherApiClientBuilder` add `initialRetryDelayMillis()`, `maxRetryDelayMillis()`, and `retryJitterFactor()` builder methods - `setAuthentication()` now guards against a null `apiKey` before adding the `x-api-token` header - Duplicate Javadoc `<p>` tags removed from builder methods across all response/entity types 🌿 Generated with Fern
fern-api
Bot
force-pushed
the
fern-bot/2026-06-10_12-30-03_692
branch
from
September 30, 2026 10:10
027d024 to
6336d46
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
3.0.0 → 3.1.0
Added
NewscatcherApiClient/AsyncNewscatcherApiClient— both now implementAutoCloseable, enabling safe use in try-with-resources blocks.ClientOptions.close()andClientOptions.isClosed()— explicit lifecycle management that shuts down the OkHttpClient dispatcher, connection pool, and any tracked WebSocket clients.RequestOptions.Builder.maxRetries(Integer)— overrides the client-wide retry count for a single request across all resource clients (sync and async).initialRetryDelayMillis(),maxRetryDelayMillis(), andretryJitterFactor()— new builder methods onNewscatcherApiClientBuilder,AsyncNewscatcherApiClientBuilder, andClientOptions.Builderfor fine-grained exponential backoff control.ResponseDecompressionInterceptor— transparently decompresses gzip- and deflate-encoded response bodies, including responses to requests with an explicitAccept-Encodingheader.Fixed
setAuthentication()— no longer sends a nullx-api-tokenheader whenapiKeyisnullin both builder classes.DateTimeDeserializer— now falls back to space-separated ISO 8601 and RFC 1123 date formats when standard ISO 8601 parsing fails.RetryInterceptor— response bodies are buffered before retry, call timeouts are suspended during backoff sleeps, and transport errors during retry no longer discard the last successful response.JsonProcessingExceptionand throw a descriptiveNewscatcherApiExceptioninstead of routing failures through the generic error handler.See full changelog