Package com.netflix.astyanax.connectionpool.exceptions

Examples of com.netflix.astyanax.connectionpool.exceptions.ConnectionException


                result.setAttemptsCount(attemptCounter);
                monitor.incOperationSuccess(getCurrentHost(), result.getLatency());
                return result;
            }
            catch (Exception e) {
                ConnectionException ce = (e instanceof ConnectionException) ? (ConnectionException) e
                        : new UnknownException(e);
              try {
                informException(ce);
                    monitor.incFailover(ce.getHost(), ce);
              }
              catch (ConnectionException ex) {
                    monitor.incOperationFailure(getCurrentHost(), ex);
                    throw ex;
              }
View Full Code Here


            if (connection.getHostConnectionPool().isReconnecting()
                    || connection.getOperationCount() > config.getMaxOperationsPerConnection()) {
                closeConnection(connection);
            }
            else {
                ConnectionException ce = connection.getLastException();
                if (ce != null && (ce instanceof IsDeadConnectionException || ce instanceof IsTimeoutException)) {
                    closeConnection(connection);
                }
                else if (!this.idleConnections.offer(connection)) {
                    closeConnection(connection);
View Full Code Here

TOP

Related Classes of com.netflix.astyanax.connectionpool.exceptions.ConnectionException

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.