From 79856b68c85efce8a6285d8314fd6b0f156ca099 Mon Sep 17 00:00:00 2001 From: Michele Rastelli Date: Thu, 10 Dec 2020 12:12:59 +0100 Subject: [PATCH 1/3] Java driver VST Keep-Alive configuration --- 3.4/drivers/java-reference-setup.md | 18 +++++++++++++++ 3.7/drivers/java-reference-setup.md | 34 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/3.4/drivers/java-reference-setup.md b/3.4/drivers/java-reference-setup.md index fd57dbcbfa..86449f6ce5 100644 --- a/3.4/drivers/java-reference-setup.md +++ b/3.4/drivers/java-reference-setup.md @@ -203,3 +203,21 @@ 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, eg. 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. diff --git a/3.7/drivers/java-reference-setup.md b/3.7/drivers/java-reference-setup.md index a9778ab615..dfadb9e4b4 100644 --- a/3.7/drivers/java-reference-setup.md +++ b/3.7/drivers/java-reference-setup.md @@ -216,3 +216,37 @@ 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, eg. firewall, intermediate routers, operating system, ... ). + +This option can be set using the key `arangodb.connections.keepAlive.interval` in the properties file or +programmatically in the driver builder: + +```Java +ArangoDB arango = new ArangoDB.Builder() + .connectionTtl(5 * 60 * 1000) + .build(); +``` + + +## 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, eg. 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. From 4ca829e7a85ac595d57fc8306d6319b2910b9192 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Fri, 11 Dec 2020 17:21:10 +0100 Subject: [PATCH 2/3] Formatting --- 3.4/drivers/java-reference-setup.md | 16 +++++++++------- 3.7/drivers/java-reference-setup.md | 28 ++++++++++++++++------------ 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/3.4/drivers/java-reference-setup.md b/3.4/drivers/java-reference-setup.md index 86449f6ce5..cbd1f9294a 100644 --- a/3.4/drivers/java-reference-setup.md +++ b/3.4/drivers/java-reference-setup.md @@ -207,17 +207,19 @@ 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, eg. firewall, intermediate routers, operating system, ... ). +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: +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(); + .keepAliveInterval(1800) // 30 minutes + .build(); ``` If not set or set to `null` (default), no keep-alive probes will be sent. diff --git a/3.7/drivers/java-reference-setup.md b/3.7/drivers/java-reference-setup.md index dfadb9e4b4..1191abf746 100644 --- a/3.7/drivers/java-reference-setup.md +++ b/3.7/drivers/java-reference-setup.md @@ -220,12 +220,14 @@ 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, eg. firewall, intermediate routers, operating system, ... ). +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 in the driver builder: +This option can be set using the key `arangodb.connections.keepAlive.interval` +in the properties file or programmatically in the driver builder: ```Java ArangoDB arango = new ArangoDB.Builder() @@ -236,17 +238,19 @@ ArangoDB arango = new ArangoDB.Builder() ## 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, eg. firewall, intermediate routers, operating system, ... ). +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: +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(); + .keepAliveInterval(1800) // 30 minutes + .build(); ``` If not set or set to `null` (default), no keep-alive probes will be sent. From 8771932900e35d888c21a51f9a90f3492c1bcf65 Mon Sep 17 00:00:00 2001 From: Michele Rastelli Date: Fri, 11 Dec 2020 20:36:58 +0100 Subject: [PATCH 3/3] fixed erroneous copy/paste --- 3.7/drivers/java-reference-setup.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/3.7/drivers/java-reference-setup.md b/3.7/drivers/java-reference-setup.md index 1191abf746..03157da98e 100644 --- a/3.7/drivers/java-reference-setup.md +++ b/3.7/drivers/java-reference-setup.md @@ -218,24 +218,6 @@ 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 in the driver builder: - -```Java -ArangoDB arango = new ArangoDB.Builder() - .connectionTtl(5 * 60 * 1000) - .build(); -``` - - ## VST Keep-Alive Since version 6.8 the driver supports setting keep-alive interval (in seconds)