You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`responseQueueTimeSamples(Integer)`: amount of samples kept for queue time metrics, (default: `10`)
92
-
-`serde(ArangoSerde)`: serde to serialize and deserialize user-data
92
+
-`compression(Compression)`: the `content-encoding` and `accept-encoding` to use for HTTP requests, possible values are: `NONE`, `DEFLATE`, `GZIP`, (default: `NONE`)
93
+
-`compressionThreshold(Integer)`: the minimum HTTP request body size (in bytes) to trigger compression, (default: `1024`)
94
+
-`compressionLevel`: compression level between 0 and 9, (default: `6`)
95
+
-`serde(ArangoSerde)`: serde to serialize and deserialize user-data
93
96
94
97
### Config File Properties
95
98
@@ -114,6 +117,9 @@ The properties read are:
114
117
-`acquireHostListInterval`
115
118
-`loadBalancingStrategy`: `NONE`, `ROUND_ROBIN` or `ONE_RANDOM`
116
119
-`responseQueueTimeSamples`
120
+
-`compression`: `NONE`, `DEFLATE` or `GZIP`
121
+
-`compressionThreshold`
122
+
-`compressionLevel`
117
123
118
124
## SSL
119
125
@@ -132,7 +138,7 @@ ArangoDB arangoDB = new ArangoDB.Builder()
132
138
The driver keeps a pool of connections for each host, the max amount of
133
139
connections is configurable.
134
140
135
-
Connections are released after the configured connection time-to-live
141
+
Inactive connections are released after the configured connection time-to-live
136
142
(`ArangoDB.Builder.connectionTtl(Long)`) or when the driver is shut down:
137
143
138
144
```java
@@ -207,23 +213,25 @@ ArangoDB arangoDB = new ArangoDB.Builder()
207
213
208
214
## Connection time to live
209
215
210
-
The driver supports setting a TTL (time to life) for connections:
216
+
The driver supports setting a TTL (time to live) for connections:
211
217
212
218
```java
213
219
ArangoDB arango =newArangoDB.Builder()
214
220
.connectionTtl(5*60*1000) // ms
215
221
.build();
216
222
```
217
223
218
-
In this example all connections will be closed/reopened after 5 minutes.
224
+
In this example, inactive connections are closed after 5 minutes.
219
225
220
-
If not set or set to `null` (default), no automatic connection closure will be performed.
226
+
The default TTL for HTTP connections is 30 seconds, while it is `null` for VST connections.
227
+
228
+
If set to `null`, no automatic connection closure is performed.
221
229
222
230
## VST Keep-Alive
223
231
224
232
The driver supports setting keep-alive interval (in seconds)
225
233
for VST connections (but VST is not supported from ArangoDB v3.12.0 onward).
226
-
If set, every VST connection will perform a no-op request
234
+
If set, every VST connection performs a no-op request
227
235
at the specified intervals, to avoid to be closed due to inactivity by the
228
236
server (or by the external environment, e.g. firewall, intermediate routers,
0 commit comments