Skip to content

Commit 54569ed

Browse files
committed
Ignore maxIdleSessions and maxIdleConnections
These two config settings will now be ignored and not delegate to `maxConnectionPoolSize`. This feels better because logic of enforcing "max idle" is now gone.
1 parent 74cff51 commit 54569ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

driver/src/main/java/org/neo4j/driver/v1/Config.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public ConfigBuilder withMaxSessions( int size )
349349
* higher if you want more concurrent sessions, or lower if you want
350350
* to lower the pressure on the database instance.
351351
* <p>
352-
* Method is deprecated and will forward the given argument to {@link #withMaxConnectionPoolSize(int)}.
352+
* Method is deprecated and will not change the driver configuration.
353353
*
354354
* @param size the max number of idle sessions to keep open
355355
* @return this builder
@@ -359,15 +359,15 @@ public ConfigBuilder withMaxSessions( int size )
359359
@Deprecated
360360
public ConfigBuilder withMaxIdleSessions( int size )
361361
{
362-
return withMaxConnectionPoolSize( size );
362+
return this;
363363
}
364364

365365
/**
366366
* The max number of idle connections to keep open at once. Configure this
367367
* higher for greater concurrency, or lower to reduce the pressure on the
368368
* database instance.
369369
* <p>
370-
* Method is deprecated and will forward the given argument to {@link #withMaxConnectionPoolSize(int)}.
370+
* Method is deprecated and will not change the driver configuration.
371371
*
372372
* @param size the max number of idle connections to keep open
373373
* @return this builder
@@ -377,7 +377,7 @@ public ConfigBuilder withMaxIdleSessions( int size )
377377
@Deprecated
378378
public ConfigBuilder withMaxIdleConnections( int size )
379379
{
380-
return withMaxConnectionPoolSize( size );
380+
return this;
381381
}
382382

383383
/**

0 commit comments

Comments
 (0)