This factory creates a new {@link LettuceConnection} on each call to {@link #getConnection()}. Multiple {@link LettuceConnection}s share a single thread-safe native connection by default.
The shared native connection is never closed by {@link LettuceConnection}, therefore it is not validated by default on {@link #getConnection()}. Use {@link #setValidateConnection(boolean)} to change this behavior if necessary. Injecta {@link Pool} to pool dedicated connections. If shareNativeConnection is true, the pool will be used to select aconnection for blocking and tx operations only, which should not share a connection. If native connection sharing is disabled, the selected connection will be used for all operations. @author Costin Leau @author Jennifer Hickey @author Thomas Darimont
|
|