Examples of ProvisionedThroughputException


Examples of com.amazonaws.services.kinesis.leases.exceptions.ProvisionedThroughputException

        Map<String, T> takenLeases = new HashMap<String, T>();

        long startTime = System.currentTimeMillis();
        boolean success = false;

        ProvisionedThroughputException lastException = null;

        try {
            for (int i = 1; i <= SCAN_RETRIES; i++) {
                try {
                    updateAllLeases(timeProvider);
View Full Code Here

Examples of com.amazonaws.services.kinesis.leases.exceptions.ProvisionedThroughputException

            dynamoDBClient.createTable(request);
        } catch (ResourceInUseException e) {
            tableDidNotExist = false;
            LOG.info("Table " + table + " already exists.");
        } catch (LimitExceededException e) {
            throw new ProvisionedThroughputException("Capacity exceeded when creating table " + table, e);
        } catch (AmazonClientException e) {
            throw new DependencyException(e);
        }
        return tableDidNotExist;
    }
View Full Code Here

Examples of com.amazonaws.services.kinesis.leases.exceptions.ProvisionedThroughputException

            return result;
        } catch (ResourceNotFoundException e) {
            throw new InvalidStateException("Cannot scan lease table " + table + " because it does not exist.", e);
        } catch (ProvisionedThroughputExceededException e) {
            throw new ProvisionedThroughputException(e);
        } catch (AmazonClientException e) {
            throw new DependencyException(e);
        }
    }
View Full Code Here

Examples of com.amazonaws.services.kinesis.leases.exceptions.ProvisionedThroughputException

     * inconsistency there exists to satisfy the compiler when this method is used at the end of non-void methods.
     */
    protected DependencyException convertAndRethrowExceptions(String operation, String leaseKey, AmazonClientException e)
        throws ProvisionedThroughputException, InvalidStateException {
        if (e instanceof ProvisionedThroughputExceededException) {
            throw new ProvisionedThroughputException(e);
        } else if (e instanceof ResourceNotFoundException) {
            // @formatter:on
            throw new InvalidStateException(String.format("Cannot %s lease with key %s because table %s does not exist.",
                    operation,
                    leaseKey,
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.