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

Specify statement timeout on Database and SqlQuery #45

Merged
merged 2 commits into from
Feb 19, 2020

Conversation

globalbus
Copy link
Contributor

No description provided.

Copy link
Member

@komu komu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the PR!

Perhaps the timeout could be represented as java.time.Duration and converted to milliseconds only at at the last moment. It would make things clearer for the callers I guess. You could say db.setDefaultTimeout(Duration.ofSeconds(5)) and so on.

Also, in Database the getter is named getDefaultTimeout but the setter is setTimeout. I guess the name of the setter is a simple mistake?

@globalbus
Copy link
Contributor Author

yep, "setTimeout" is obviously a copy/paste mistake.
I agree that the java.time.Duration is better approach.

@komu komu merged commit a3987a7 into EvidentSolutions:master Feb 19, 2020
@globalbus globalbus deleted the feature/timeout branch February 19, 2020 07:23
@komu
Copy link
Member

komu commented Feb 19, 2020

I just released 1.3.1 with this change. The artifacts should be synced from Sonatype to central maven repo within few hours.

globalbus added a commit to globalbus/dalesbred that referenced this pull request Dec 7, 2020
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.

None yet

2 participants