/** * Set the amount of time a connection can be idle before expiring the connection. If the pool * size is greater than the minimum specified by {@link #setPoolMinConnections(int)}, connections * which have been idle for longer than the idleTimeout will be closed. * * @param idleTimeout The amount of time in milliseconds that an idle connection should live * before expiring. -1 indicates that connections should never expire. * @return a reference to <code>this</code> * @throws IllegalArgumentException if <code>idleTimout</code> is less than <code>-1</code>. */ public ClientCacheFactory setPoolIdleTimeout(long idleTimeout) { getPoolFactory().setIdleTimeout(idleTimeout); return this; }
f.setIdleTimeout(parseLong(v));
pf.setIdleTimeout(idleTimeout);
.thenAnswer(newSetter(freeConnectionTimeout, mockPoolFactory)); when(mockPoolFactory.setIdleTimeout(anyLong())) .thenAnswer(newSetter(idleTimeout, mockPoolFactory));
mockPoolFactory.setIdleTimeout(invocation.getArgument(0)); return clientCacheFactorySpy; }).when(clientCacheFactorySpy).setPoolIdleTimeout(anyLong());
it.setIdleTimeout(this.idleTimeout); it.setLoadConditioningInterval(this.loadConditioningInterval); it.setMaxConnections(this.maxConnections);
it.setIdleTimeout(this.idleTimeout); it.setLoadConditioningInterval(this.loadConditioningInterval); it.setMaxConnections(this.maxConnections);