Packages

object KCLConsumerFS2

Source
KCLConsumerFS2.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KCLConsumerFS2
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class Config[F[_]](underlying: KCLConsumer.Config[F], queue: Queue[F, CommittableRecord[F]], fs2Config: FS2Config) extends Product with Serializable

    Configuration for the KCLConsumerFS2

    Configuration for the KCLConsumerFS2

    underlying

    KCLConsumer.Config

    queue

    Queue of CommittableRecord

  2. final case class FS2Config(queueSize: Int, commitMaxChunk: Int, commitMaxWait: FiniteDuration, commitMaxRetries: Int, commitRetryInterval: FiniteDuration) extends Product with Serializable

    Configuration for the FS2 implementation

    Configuration for the FS2 implementation

    queueSize

    Size of the underlying queue for the FS2 stream. If the queue fills up, backpressure on the processors will occur. Default 100

    commitMaxChunk

    Max records to be received in the commitRecords Pipe before a commit is run. Default is 1000

    commitMaxWait

    Max duration to wait in commitRecords Pipe before a commit is run. Default is 10 seconds

    commitMaxRetries

    Max number of retries for a commit operation

    commitRetryInterval

    Interval to wait between commit retries

  3. final case class StreamAndDeferred[F[_]](stream: Stream[F, CommittableRecord[F]], deferred: Deferred[F, Unit]) extends Product with Serializable

    Helper class that holds both an fs2.Stream and a Deferred

    Helper class that holds both an fs2.Stream and a Deferred

    stream

    fs2.Stream of kinesis4cats.kcl.CommittableRecord values to process

    deferred

    Deferred which will complete when a defined WorkerState is recognized.

  4. final case class StreamAndRef[F[_]](stream: Stream[F, CommittableRecord[F]], ref: Ref[F, WorkerState]) extends Product with Serializable

    Helper class that holds both an fs2.Stream and a Ref of the WorkerState

    Helper class that holds both an fs2.Stream and a Ref of the WorkerState

    stream

    fs2.Stream of kinesis4cats.kcl.CommittableRecord values to process

    ref

    Ref that contains the current WorkerState

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[F[_]](checkpointConfig: CheckpointConfig, coordinatorConfig: CoordinatorConfig, leaseManagementConfig: LeaseManagementConfig, lifecycleConfig: LifecycleConfig, metricsConfig: MetricsConfig, retrievalConfig: RetrievalConfig, fs2Config: FS2Config = FS2Config.default, processConfig: ProcessConfig = defaultProcessConfig)(implicit F: Async[F], P: Parallel[F], encoders: LogEncoders): Resource[F, KCLConsumerFS2[F]]

    Low-level constructor for KCLConsumerFS2.

    Low-level constructor for KCLConsumerFS2.

    checkpointConfig

    CheckpointConfig

    coordinatorConfig

    CoordinatorConfig

    leaseManagementConfig

    LeaseManagementConfig

    lifecycleConfig

    LifecycleConfig

    metricsConfig

    MetricsConfig

    retrievalConfig

    RetrievalConfig

    processConfig

    KCLConsumer.ProcessConfig

    F

    Async instance

    encoders

    RecordProcessor.LogEncoders for encoding structured logs

    returns

    Resource containing the KCLConsumerFS2

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. def configsBuilder[F[_]](kinesisClient: KinesisAsyncClient, dynamoClient: DynamoDbAsyncClient, cloudWatchClient: CloudWatchAsyncClient, streamName: String, appName: String, fs2Config: FS2Config = FS2Config.default, workerId: String = Utils.randomUUIDString, processConfig: ProcessConfig = defaultProcessConfig)(tfn: (KCLConsumer.Config[F]) => KCLConsumer.Config[F] = (x: kinesis4cats.kcl.KCLConsumer.Config[F]) => x)(implicit F: Async[F], P: Parallel[F], encoders: LogEncoders): Resource[F, KCLConsumerFS2[F]]

    Constructor for the KCLConsumerFS2 that leverages the ConfigsBuilder from the KCL.

    Constructor for the KCLConsumerFS2 that leverages the ConfigsBuilder from the KCL. This is a simpler entry-point for creating the configuration, and provides a transform function to add any custom configuration that was not covered by the default

    kinesisClient

    KinesisAsyncClient

    dynamoClient

    DynamoDbAsyncClient

    cloudWatchClient

    CloudWatchClient

    streamName

    Name of the Kinesis stream to consume from

    appName

    Name of the application. Usually also the dynamo table name for checkpoints

    workerId

    Unique identifier for a single instance of this consumer. Default is a random UUID.

    processConfig

    KCLConsumer.ProcessConfig

    tfn

    Function to update the KCLConsumer.Config. Useful for overriding defaults.

    F

    Async instance

    encoders

    RecordProcessor.LogEncoders for encoding structured logs

    returns

    Resource containing the KCLConsumerFS2.Config

  8. def configsBuilderMultiStream[F[_]](kinesisClient: KinesisAsyncClient, dynamoClient: DynamoDbAsyncClient, cloudWatchClient: CloudWatchAsyncClient, tracker: MultiStreamTracker, appName: String, fs2Config: FS2Config = FS2Config.default, workerId: String = Utils.randomUUIDString, processConfig: ProcessConfig = defaultProcessConfig)(tfn: (KCLConsumer.Config[F]) => KCLConsumer.Config[F] = (x: kinesis4cats.kcl.KCLConsumer.Config[F]) => x)(implicit F: Async[F], P: Parallel[F], encoders: LogEncoders): Resource[F, KCLConsumerFS2[F]]

    Constructor for the KCLConsumerFS2 that leverages the ConfigsBuilder from the KCL.

    Constructor for the KCLConsumerFS2 that leverages the ConfigsBuilder from the KCL. This is a simpler entry-point for creating the configuration, and provides a transform function to add any custom configuration that was not covered by the default. This constructor specifically leverages the MultiStreamTracker to allow for consumption from multiple streams.

    kinesisClient

    KinesisAsyncClient

    dynamoClient

    DynamoDbAsyncClient

    cloudWatchClient

    CloudWatchClient

    tracker

    MultiStreamTracker

    appName

    Name of the application. Usually also the dynamo table name for checkpoints

    workerId

    Unique identifier for a single instance of this consumer. Default is a random UUID.

    processConfig

    KCLConsumer.ProcessConfig

    tfn

    Function to update the KCLConsumer.Config. Useful for overriding defaults.

    F

    Async instance

    encoders

    RecordProcessor.LogEncoders for encoding structured logs

    returns

    Resource containing the KCLConsumerFS2.Config

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. object Config extends Serializable
  23. object FS2Config extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped