src/main/java/reactor/netty/resources/ConnectionProvider.java
/**
	 * Create a {@link ConnectionProvider} to cache and grow on demand {@link Connection}.
	 * <p>An elastic {@link ConnectionProvider} will never wait before opening a new
	 * connection. The reuse window is limited but it cannot starve an undetermined volume
	 * of clients using it.
	 *
	 * @param name the channel pool map name
	 * @param maxIdleTime the {@link Duration} after which the channel will be closed (resolution: ms),
	 *                    if {@code NULL} there is no max idle time
	 *
	 * @return a new {@link ConnectionProvider} to cache and grow on demand
	 * {@link Connection}
	 */
Create a  ConnectionProvider to cache and grow on demand  Connection.
An elastic  ConnectionProvider will never wait before opening a new
connection. The reuse window is limited but it cannot starve an undetermined volume
of clients using it.

@param name the channel pool map name
@param maxIdleTime the  Duration after which the channel will be closed (resolution: ms),
if  NULL there is no max idle time

@return a new  ConnectionProvider to cache and grow on demand
Connection
Create a ConnectionProvider to cache and grow on demand Connection . An elastic ConnectionProvider will never wait before opening a new connection . The reuse window is limited but it cannot starve an undetermined volume of clients using it . @param name the channel pool map name @param maxIdleTime the Duration after which the channel will be closed ( resolution : ms ) if NULL there is no max idle time @return a new ConnectionProvider to cache and grow on demand Connection
static ConnectionProvider elastic(String name, @Nullable Duration maxIdleTime) {
		return new PooledConnectionProvider(name,
				(allocator, destroyHandler, evictionPredicate) ->
				                PoolBuilder.from(allocator)
				                           .destroyHandler(destroyHandler)
				                           .evictionPredicate(evictionPredicate
				                                   .or((poolable, meta) -> maxIdleTime != null &&
				                                           meta.idleTime() >= maxIdleTime.toMillis()))
				                           .fifo());
	}
static ConnectionProvider elastic ( String name , @ Nullable Duration maxIdleTime ) { return new PooledConnectionProvider ( name , ( allocator , destroyHandler , evictionPredicate ) -> PoolBuilder . from ( allocator ) . destroyHandler ( destroyHandler ) . evictionPredicate ( evictionPredicate . or ( ( poolable , meta ) -> maxIdleTime != null && meta . idleTime ( ) >= maxIdleTime . toMillis ( ) ) ) . fifo ( ) ) ; }
Create a {@link ConnectionProvider} to cache and grow on demand {@link Connection}.
Create a { @link ConnectionProvider } to cache and grow on demand { @link Connection } .