/** * Set the max number of client to server connections that the pool will create. If all of the * connections are in use, an operation requiring a client to server connection will block until a * connection is available. * * @param maxConnections the maximum number of connections in the pool. this pool will create. -1 * indicates that there is no maximum number of connections * @return a reference to <code>this</code> * @throws IllegalArgumentException if <code>maxConnections</code> is less than * <code>minConnections</code>. * @see #setPoolFreeConnectionTimeout(int) */ public ClientCacheFactory setPoolMaxConnections(int maxConnections) { getPoolFactory().setMaxConnections(maxConnections); return this; }
f.setMaxConnections(parseInt(v));
.thenAnswer(newSetter(loadConditioningInterval, mockPoolFactory)); when(mockPoolFactory.setMaxConnections(anyInt())) .thenAnswer(newSetter(maxConnections, mockPoolFactory));
mockPoolFactory.setMaxConnections(invocation.getArgument(0)); return clientCacheFactorySpy; }).when(clientCacheFactorySpy).setPoolMaxConnections(anyInt());
it.setIdleTimeout(this.idleTimeout); it.setLoadConditioningInterval(this.loadConditioningInterval); it.setMaxConnections(this.maxConnections); it.setMinConnections(this.minConnections); it.setMultiuserAuthentication(this.multiUserAuthentication);
it.setIdleTimeout(this.idleTimeout); it.setLoadConditioningInterval(this.loadConditioningInterval); it.setMaxConnections(this.maxConnections); it.setMinConnections(this.minConnections); it.setMultiuserAuthentication(this.multiUserAuthentication);