Package com.amazonaws.services.kinesis.clientlibrary.exceptions

Examples of com.amazonaws.services.kinesis.clientlibrary.exceptions.KinesisClientLibDependencyException


        } catch (InvalidStateException e) {
            String message = "Unable to save checkpoint for shardId " + shardId;
            LOG.error(message, e);
            throw new com.amazonaws.services.kinesis.clientlibrary.exceptions.InvalidStateException(message, e);
        } catch (DependencyException e) {
            throw new KinesisClientLibDependencyException("Unable to save checkpoint for shardId " + shardId, e);
        }
    }
View Full Code Here


            throw e;
        } catch (KinesisClientLibDependencyException e) {
            throw e;
        } catch (KinesisClientLibException e) {
            LOG.warn("Caught exception setting checkpoint.", e);
            throw new KinesisClientLibDependencyException("Caught exception while checkpointing", e);
        }
    }
View Full Code Here

                throw e;
            } catch (KinesisClientLibDependencyException e) {
                throw e;
            } catch (KinesisClientLibException e) {
                LOG.warn("Caught exception setting checkpoint.", e);
                throw new KinesisClientLibDependencyException("Caught exception while checkpointing", e);
            }
        }
    }
View Full Code Here

            throw new ThrottlingException("Exceeded throughput while getting an iterator for shard " + shardId, e);
        } catch (AmazonServiceException e) {
            LOG.info("Encountered service exception while getting an iterator for shard " + shardId, e);
            if (e.getStatusCode() >= SERVER_SIDE_ERROR_CODE) {
                // clients can choose whether to retry in their checkpoint logic
                throw new KinesisClientLibDependencyException("Encountered service exception while getting an iterator"
                        + " for shard " + shardId, e);
            }
            // Just throw any other exceptions, e.g. 400 errors caused by the client
            throw e;
        }
View Full Code Here

                throw e;
            } catch (KinesisClientLibDependencyException e) {
                throw e;
            } catch (KinesisClientLibException e) {
                LOG.warn("Caught exception setting checkpoint.", e);
                throw new KinesisClientLibDependencyException("Caught exception while checkpointing", e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.kinesis.clientlibrary.exceptions.KinesisClientLibDependencyException

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.