Skip to content

Commit fbf8205

Browse files
mpv1989hkernbach
authored andcommitted
Document connectionTtl time unit (#231)
1 parent f0b7625 commit fbf8205

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/Drivers/Java/Reference/Setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ ArangoDB arangoDB = new ArangoDB.Builder()
177177

178178
## Connection time to live
179179

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

183183
```Java
184184
ArangoDB arango = new ArangoDB.Builder()

src/main/java/com/arangodb/ArangoDB.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public Builder maxConnections(final Integer maxConnections) {
239239
* Set the maximum time to life of a connection. After this time the connection will be closed automatically.
240240
*
241241
* @param connectionTtl
242-
* the maximum time to life of a connection.
242+
* the maximum time to life of a connection in milliseconds
243243
* @return {@link ArangoDB.Builder}
244244
*/
245245
public Builder connectionTtl(final Long connectionTtl) {

0 commit comments

Comments
 (0)