File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed 
src/main/java/com/arangodb Expand file tree Collapse file tree 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) {
263263setAcquireHostList (acquireHostList );
264264return  this ;
265265}
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+ }
266278
267279/** 
268280 * 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() {
115115}
116116
117117public  InternalArangoDBBuilder  loadProperties (final  InputStream  in ) throws  ArangoDBException  {
118+ 
119+ final  Properties  properties  = new  Properties ();
120+ 
118121if  (in  != null ) {
119- final   Properties   properties  =  new   Properties (); 
122+ 
120123try  {
121124properties .load (in );
122- loadProperties (properties );
123125} catch  (final  IOException  e ) {
124126throw  new  ArangoDBException (e );
125127}
126128}
129+ 
130+ loadProperties (properties );
131+ 
127132return  this ;
133+ 
128134}
129135
130136protected  void  loadProperties (final  Properties  properties ) {
@@ -185,6 +191,10 @@ protected void setAcquireHostList(final Boolean acquireHostList) {
185191this .acquireHostList  = acquireHostList ;
186192}
187193
194+ protected  void  setAcquireHostListInterval (final  Integer  acquireHostListInterval ) {
195+ this .acquireHostListInterval  = acquireHostListInterval ;
196+ }
197+ 
188198protected  void  setLoadBalancingStrategy (final  LoadBalancingStrategy  loadBalancingStrategy ) {
189199this .loadBalancingStrategy  = loadBalancingStrategy ;
190200}
                         You can’t perform that action at this time. 
           
                  
0 commit comments