Skip to content

Commit 239ff36

Browse files
committed
Improved javadoc for couple Config methods
1 parent 06d1d8a commit 239ff36

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ public ConfigBuilder withLeakedSessionsLogging()
335335
*
336336
* @param size the max number of sessions to keep open
337337
* @return this builder
338-
* @deprecated please use {@link #withMaxConnectionPoolSize(int)} instead.
338+
* @deprecated please use a combination of {@link #withMaxConnectionPoolSize(int)} and
339+
* {@link #withConnectionAcquisitionTimeout(long, TimeUnit)} instead.
339340
*/
340341
@Deprecated
341342
public ConfigBuilder withMaxSessions( int size )
@@ -352,7 +353,8 @@ public ConfigBuilder withMaxSessions( int size )
352353
*
353354
* @param size the max number of idle sessions to keep open
354355
* @return this builder
355-
* @deprecated please use {@link #withMaxConnectionPoolSize(int)} instead.
356+
* @deprecated please use a combination of {@link #withMaxConnectionPoolSize(int)} and
357+
* {@link #withConnectionAcquisitionTimeout(long, TimeUnit)} instead.
356358
*/
357359
@Deprecated
358360
public ConfigBuilder withMaxIdleSessions( int size )
@@ -369,7 +371,8 @@ public ConfigBuilder withMaxIdleSessions( int size )
369371
*
370372
* @param size the max number of idle connections to keep open
371373
* @return this builder
372-
* @deprecated please use {@link #withMaxConnectionPoolSize(int)} instead.
374+
* @deprecated please use a combination of {@link #withMaxConnectionPoolSize(int)} and
375+
* {@link #withConnectionAcquisitionTimeout(long, TimeUnit)} instead.
373376
*/
374377
@Deprecated
375378
public ConfigBuilder withMaxIdleConnections( int size )

0 commit comments

Comments
 (0)