List of usage examples for org.springframework.data.redis.connection PoolException PoolException
public PoolException(String msg)
PoolException
instance. From source file:org.springframework.data.redis.connection.lettuce.LettucePoolingConnectionProvider.java
@Override public void release(StatefulConnection<?, ?> connection) { GenericObjectPool<StatefulConnection<?, ?>> pool = poolRef.remove(connection); if (pool == null) { throw new PoolException("Returned connection " + connection + " was either previously returned or does not belong to this connection provider"); }//from w w w.j a v a 2 s . c om pool.returnObject(connection); }