File tree 2 files changed +24
-2
lines changed
src/main/java/com/arangodb
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,18 @@ public Builder acquireHostList(final Boolean acquireHostList) {
263
263
setAcquireHostList (acquireHostList );
264
264
return this ;
265
265
}
266
+
267
+ /**
268
+ * Setting the Interval for acquireHostList
269
+ *
270
+ * @param acquireHostListInterval Interval in Seconds
271
+ *
272
+ * @return {@link ArangoDB.Builder}
273
+ */
274
+ public Builder acquireHostListInterval (final Integer acquireHostListInterval ) {
275
+ setAcquireHostListInterval (acquireHostListInterval );
276
+ return this ;
277
+ }
266
278
267
279
/**
268
280
* Sets the load balancing strategy to be used in an ArangoDB cluster setup.
Original file line number Diff line number Diff line change @@ -115,16 +115,22 @@ public InternalArangoDBBuilder() {
115
115
}
116
116
117
117
public InternalArangoDBBuilder loadProperties (final InputStream in ) throws ArangoDBException {
118
+
119
+ final Properties properties = new Properties ();
120
+
118
121
if (in != null ) {
119
- final Properties properties = new Properties ();
122
+
120
123
try {
121
124
properties .load (in );
122
- loadProperties (properties );
123
125
} catch (final IOException e ) {
124
126
throw new ArangoDBException (e );
125
127
}
126
128
}
129
+
130
+ loadProperties (properties );
131
+
127
132
return this ;
133
+
128
134
}
129
135
130
136
protected void loadProperties (final Properties properties ) {
@@ -185,6 +191,10 @@ protected void setAcquireHostList(final Boolean acquireHostList) {
185
191
this .acquireHostList = acquireHostList ;
186
192
}
187
193
194
+ protected void setAcquireHostListInterval (final Integer acquireHostListInterval ) {
195
+ this .acquireHostListInterval = acquireHostListInterval ;
196
+ }
197
+
188
198
protected void setLoadBalancingStrategy (final LoadBalancingStrategy loadBalancingStrategy ) {
189
199
this .loadBalancingStrategy = loadBalancingStrategy ;
190
200
}
You can’t perform that action at this time.
0 commit comments