Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Java driver VST Keep-Alive configuration #595

Merged
merged 3 commits into from
Dec 11, 2020
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
20 changes: 20 additions & 0 deletions 3.4/drivers/java-reference-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,23 @@ Connection TTL can be disabled setting it to `null`:
```

The default TTL is `null` (no automatic connection closure).


## VST Keep-Alive

Since version 6.8 the driver supports setting keep-alive interval (in seconds)
for VST connections. If set, every VST connection will perform a no-op request
at the specified intervals, to avoid to be closed due to inactivity by the
server (or by the external environment, e.g. firewall, intermediate routers,
operating system, ... ).

This option can be set using the key `arangodb.connections.keepAlive.interval`
in the properties file or programmatically from the driver builder:

```Java
ArangoDB arangoDB = new ArangoDB.Builder()
.keepAliveInterval(1800) // 30 minutes
.build();
```

If not set or set to `null` (default), no keep-alive probes will be sent.
20 changes: 20 additions & 0 deletions 3.7/drivers/java-reference-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,23 @@ Connection TTL can be disabled setting it to `null`:
```

The default TTL is `null` (no automatic connection closure).


## VST Keep-Alive

Since version 6.8 the driver supports setting keep-alive interval (in seconds)
for VST connections. If set, every VST connection will perform a no-op request
at the specified intervals, to avoid to be closed due to inactivity by the
server (or by the external environment, e.g. firewall, intermediate routers,
operating system, ... ).

This option can be set using the key `arangodb.connections.keepAlive.interval`
in the properties file or programmatically from the driver builder:

```Java
ArangoDB arangoDB = new ArangoDB.Builder()
.keepAliveInterval(1800) // 30 minutes
.build();
```

If not set or set to `null` (default), no keep-alive probes will be sent.