Skip to content

Document connectionTtl time unit #231

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

Merged
merged 2 commits into from
Dec 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/Drivers/Java/Reference/Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ ArangoDB arangoDB = new ArangoDB.Builder()

## Connection time to live

Since version 4.4 the driver supports setting a TTL for connections managed
by the internal connection pool.
Since version 4.4 the driver supports setting a TTL (time to life) in milliseconds
for connections managed by the internal connection pool.

```Java
ArangoDB arango = new ArangoDB.Builder()
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/arangodb/ArangoDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public Builder maxConnections(final Integer maxConnections) {
* Set the maximum time to life of a connection. After this time the connection will be closed automatically.
*
* @param connectionTtl
* the maximum time to life of a connection.
* the maximum time to life of a connection in milliseconds
* @return {@link ArangoDB.Builder}
*/
public Builder connectionTtl(final Long connectionTtl) {
Expand Down