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

introduce customizable connect and read timeout #14

Merged
merged 2 commits into from
Jan 30, 2021
Merged

Conversation

stklcode
Copy link
Owner

@stklcode stklcode commented Jan 24, 2021

Introduce new timeout configuration in the client configuration object (#9). Both connection and read timeout can be specified.

new UraClient(
    UraClientConfiguration.forBaseURL("https://api.example.com")
                          .withConnectTimeout(Duration.ofSeconde(2))
                          .withTimeout(Duration.ofSeconde(10))
                          .build()
)

@stklcode stklcode added this to the 2.0 milestone Jan 24, 2021
@stklcode stklcode self-assigned this Jan 24, 2021
@stklcode stklcode merged commit 6bf976c into develop Jan 30, 2021
@stklcode stklcode deleted the feature/timeout branch January 30, 2021 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant