Package org.springframework.data.redis.connection

Examples of org.springframework.data.redis.connection.PoolException


  public JRedis getResource() {
    try {
      return internalPool.borrowObject();
    } catch (Exception e) {
      throw new PoolException("Could not get a resource from the pool", e);
    }
  }
View Full Code Here


  public void returnBrokenResource(final JRedis resource) {
    try {
      internalPool.invalidateObject(resource);
    } catch (Exception e) {
      throw new PoolException("Could not invalidate the broken resource", e);
    }
  }
View Full Code Here

  public void returnResource(final JRedis resource) {
    try {
      internalPool.returnObject(resource);
    } catch (Exception e) {
      throw new PoolException("Could not return the resource to the pool", e);
    }
  }
View Full Code Here

  public void destroy() {
    try {
      internalPool.close();
    } catch (Exception e) {
      throw new PoolException("Could not destroy the pool", e);
    }
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  public RedisAsyncConnection<byte[], byte[]> getResource() {
    try {
      return internalPool.borrowObject();
    } catch (Exception e) {
      throw new PoolException("Could not get a resource from the pool", e);
    }
  }
View Full Code Here

  public void returnBrokenResource(final RedisAsyncConnection<byte[], byte[]> resource) {
    try {
      internalPool.invalidateObject(resource);
    } catch (Exception e) {
      throw new PoolException("Could not invalidate the broken resource", e);
    }
  }
View Full Code Here

  public void returnResource(final RedisAsyncConnection<byte[], byte[]> resource) {
    try {
      internalPool.returnObject(resource);
    } catch (Exception e) {
      throw new PoolException("Could not return the resource to the pool", e);
    }
  }
View Full Code Here

  public void destroy() {
    try {
      client.shutdown();
      internalPool.close();
    } catch (Exception e) {
      throw new PoolException("Could not destroy the pool", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.redis.connection.PoolException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.