aws-kinesis-client-0.4.0.2: A producer & consumer client library for AWS Kinesis

CopyrightCopyright © 2013-2015 PivotCloud, Inc.
LicenseApache-2.0
MaintainerJon Sterling <jsterling@alephcloud.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Aws.Kinesis.Client.Producer.Kit

Contents

Description

 

Synopsis

Producer Kit

data ProducerKit Source

The basic input required to construct a Kinesis producer.

makeProducerKit :: KinesisKit -> StreamName -> ProducerKit Source

Create a ProducerKit with default settings.

Queue Implementations

data QueueImplementation Source

A proxy object for specifying a concrete queue implementation. You may provide your own, or use defaultQueueImplementation.

Constructors

forall proxy q . BoundedCloseableQueue q MessageQueueItem => QueueImplementation (proxy q) 

Policies

data BatchPolicy Source

The producer batches records according to a user-specified policy.

defaultBatchPolicy :: BatchPolicy Source

The default batching policy sends 200 records per PutRecordsEndpoint request.

bpBatchSize :: Lens' BatchPolicy Natural Source

The number of records to send in a single request. This is only used when the endpoint is set to PutRecordsEndpoint.

data RetryPolicy Source

The producer will attempt to re-send records which failed according to a user-specified policy. This policy applies to failures which occur in the process of sending a message to Kinesis, not those which occur in the course of enqueuing a message.

defaultRetryPolicy :: RetryPolicy Source

The default retry policy will attempt 5 retries for a message.

rpRetryCount :: Lens' RetryPolicy Natural Source

The number of times to retry sending a message after it has first failed.

Constants

pattern MaxMessageSize :: (Num a, Eq a) => a Source

The maximum size in bytes of a message.