Skip to content

Cvent Java SDK v1.2.2 - Add configurable connect and call timeouts to the Java SDK#45

Merged
mihirkothari25 merged 5 commits intomainfrom
API-5896
Apr 27, 2026
Merged

Cvent Java SDK v1.2.2 - Add configurable connect and call timeouts to the Java SDK#45
mihirkothari25 merged 5 commits intomainfrom
API-5896

Conversation

@mihirkothari25
Copy link
Copy Markdown
Contributor

Summary

Adds the ability to configure HTTP connect and call timeouts for the Java SDK. Previously, the SDK used JDK defaults with no way to override them.

What's New

Timeout Configuration API — Call SDKHooks.configure() before building the SDK to customize timeouts:

SDKHooks.configure(new HooksConfiguration(
    new TimeoutHookConfiguration(
        Duration.ofSeconds(5),    // connect timeout (default: 10s)
        Duration.ofSeconds(60)    // call timeout    (default: 30s)
    )
));

CventSDK sdk = CventSDK.builder()
        .security(/* ... */)
        .build();

Pass null for either value to keep the default.

Timeout Default Description
Connect 10 seconds Max time to establish a TCP connection
Call 30 seconds Max time for the entire request/response cycle

Other Changes

  • SDK version bumped to 1.2.2
  • Rate limit exception classes moved to com.cvent.hooks.exceptions package (QuotaExceededException, ThrottlingException)

Migration Notes

If you import QuotaExceededException or ThrottlingException directly, update the import path from com.cvent.hooks to com.cvent.hooks.exceptions.

@mihirkothari25 mihirkothari25 requested a review from a team April 24, 2026 20:29
@mihirkothari25 mihirkothari25 merged commit 41c0e7e into main Apr 27, 2026
4 checks passed
@mihirkothari25 mihirkothari25 deleted the API-5896 branch April 27, 2026 16:13
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.

2 participants