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

feat: Refactored options and added HTTP read timeout #91

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

vlastahajek
Copy link
Collaborator

Improved API for settings of write and HTTP options:

  • Introduced WriteOptions to wrap the write related options (write precision, batch-size, etc). It offers fluent style API allowing to change only the required options. InfluxDBClient has overloaded setWriteOptions(const WriteOptions& writeOptions) method.
  • Introduced HTTPOptions to wrap the HTTP related options (e.g. reusing connection). It offers fluent style API allowing to change only the required options. InfluxDBClient has setHTTPOptions(const HTTPOptions& httpOptions) method.
  • Added possibility to set HTTP response read timeout (part of the HTTPOptions).
  • Method InfluxDBClient::void setWriteOptions(WritePrecision precision, uint16_t batchSize = 1, uint16_t bufferSize = 5, uint16_t flushInterval = 60, bool preserveConnection = true) is deprecated and it will be removed in the next release.

@vlastahajek vlastahajek merged commit 355925b into tobiasschuerg:master Aug 28, 2020
@vlastahajek vlastahajek deleted the feat/http_timeout branch August 28, 2020 11:37
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.

1 participant