Examples of PoolException


Examples of org.ow2.util.pool.api.PoolException

     * @param clue the given clue that is provided
     * @throws PoolException as the clue parameter is not managed.
     * @return nothing as there is an exception thrown
     */
    public PoolType get(final Long clue) throws PoolException {
        throw new PoolException("No clue are managed by this wrapper");
    }
View Full Code Here

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

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

  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

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

  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

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

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

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

  @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

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

  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

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

  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

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

  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
Copyright © 2018 www.massapi.com. 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.