Example usage for org.springframework.data.redis.connection PoolException PoolException

List of usage examples for org.springframework.data.redis.connection PoolException PoolException

Introduction

In this page you can find the example usage for org.springframework.data.redis.connection PoolException PoolException.

Prototype

public PoolException(String msg) 

Source Link

Document

Constructs a new PoolException instance.

Usage

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);
}