File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
site/content/3.12/develop/drivers/java/reference-version-7 Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,31 @@ Here are examples to integrate configuration properties from different sources:
93
93
- ` compressionThreshold(Integer) ` : the minimum HTTP request body size (in bytes) to trigger compression, (default: ` 1024 ` )
94
94
- ` compressionLevel ` : compression level between 0 and 9, (default: ` 6 ` )
95
95
- ` serde(ArangoSerde) ` : serde to serialize and deserialize user-data
96
- - ` reuseVertx(Boolean) ` : reuse Vert.x instance to create HTTP connections, (default: ` false ` )
96
+ - ` protocolConfig(ProtocolConfig) ` : configuration specific for the used protocol provider implementation
97
+
98
+ ### HTTP Protocol Provider Configuration
99
+
100
+ The ` ProtocolConfig ` for the default HTTP protocol provider can be created via:
101
+
102
+ ``` java
103
+ HttpProtocolConfig . builder()
104
+ // ...
105
+ .build();
106
+ ```
107
+
108
+ and configured using the following builder methods:
109
+ - ` vertx(Vertx) ` : Vert.x instance to use, if not set a new instance will be created
110
+
111
+ For example, to reuse the existing Vert.x instance:
112
+
113
+ ``` java
114
+ HttpProtocolConfig . builder()
115
+ .protocolConfig(HttpProtocolConfig . builder()
116
+ .vertx(Vertx . currentContext(). owner())
117
+ .build()
118
+ )
119
+ .build();
120
+ ```
97
121
98
122
### Config File Properties
99
123
@@ -121,7 +145,6 @@ The properties read are:
121
145
- ` compression ` : ` NONE ` , ` DEFLATE ` or ` GZIP `
122
146
- ` compressionThreshold `
123
147
- ` compressionLevel `
124
- - ` reuseVertx `
125
148
126
149
## SSL
127
150
You can’t perform that action at this time.
0 commit comments