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.Consumer.Internal.Kit

Description

 

Synopsis

Documentation

data ConsumerKit Source

The ConsumerKit contains what is needed to initialize a KinesisConsumer.

Constructors

ConsumerKit 

Fields

_ckKinesisKit :: !KinesisKit

The credentials and configuration for making requests to AWS Kinesis.

_ckStreamName :: !StreamName

The name of the stream to consume from.

_ckBatchSize :: !Natural

The number of records to fetch at once from the stream.

_ckIteratorType :: !ShardIteratorType

The type of iterator to consume.

_ckSavedStreamState :: !(Maybe SavedStreamState)

Optionally, an initial stream state. The iterator type in _ckIteratorType will be used for any shards not present in the saved stream state; otherwise, AfterSequenceNumber will be used.

makeConsumerKit :: KinesisKit -> StreamName -> ConsumerKit Source

Create a ConsumerKit with default settings (using iterator type Latest and a batch size of 200).