Kinesis

fs2.aws.kinesis.Kinesis
See theKinesis companion object
trait Kinesis[F[_]]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def checkpointRecords(checkpointSettings: KinesisCheckpointSettings): (F, CommittableRecord) => KinesisClientRecord

Pipe to checkpoint records in Kinesis, marking them as processed Groups records by shard id, so that each shard is subject to its own clustering of records After accumulating maxBatchSize or reaching maxBatchWait for a respective shard, the latest record is checkpointed By design, all records prior to the checkpointed record are also checkpointed in Kinesis

Pipe to checkpoint records in Kinesis, marking them as processed Groups records by shard id, so that each shard is subject to its own clustering of records After accumulating maxBatchSize or reaching maxBatchWait for a respective shard, the latest record is checkpointed By design, all records prior to the checkpointed record are also checkpointed in Kinesis

Attributes

checkpointSettings

configure maxBatchSize and maxBatchWait time before triggering a checkpoint

Returns:

a stream of Record types representing checkpointed messages

Initialize a worker and start streaming records from a Kinesis stream On stream finish (due to error or other), worker will be shutdown

Initialize a worker and start streaming records from a Kinesis stream On stream finish (due to error or other), worker will be shutdown

Attributes

consumerConfig

configuration parameters for the KCL

Returns:

an infinite fs2 Stream that emits Kinesis Records Chunks

Concrete methods

def readFromKinesisStream(appName: String, streamName: String): Stream[F, CommittableRecord]

Initialize a worker and start streaming records from a Kinesis stream On stream finish (due to error or other), worker will be shutdown

Initialize a worker and start streaming records from a Kinesis stream On stream finish (due to error or other), worker will be shutdown

Attributes

appName

name of the Kinesis application. Used by KCL when resharding

streamName

name of the Kinesis stream to consume from

Returns:

an infinite fs2 Stream that emits Kinesis Records

Initialize a worker and start streaming records from a Kinesis stream On stream finish (due to error or other), worker will be shutdown

Initialize a worker and start streaming records from a Kinesis stream On stream finish (due to error or other), worker will be shutdown

Attributes

consumerConfig

configuration parameters for the KCL

Returns:

an infinite fs2 Stream that emits Kinesis Records