object LocalstackKCLConsumerFS2
Helpers for constructing and leveraging the KCL with Localstack via FS2.
- Alphabetic
- By Inheritance
- LocalstackKCLConsumerFS2
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kclConfig[F[_]](streamName: String, appName: String, prefix: Option[String] = None, workerId: String = Utils.randomUUIDString, position: InitialPositionInStreamExtended = InitialPositionInStreamExtended.newInitialPosition(
InitialPositionInStream.TRIM_HORIZON
), processConfig: ProcessConfig = KCLConsumerFS2.defaultProcessConfig)(implicit F: Async[F], LE: LogEncoders): Resource[F, Config[F]]Creates a KCLConsumerFS2.Config that is compliant with Localstack.
Creates a KCLConsumerFS2.Config that is compliant with Localstack.
- streamName
Name of stream to consume
- appName
Application name for the consumer. Used for the dynamodb table name as well as the metrics namespace.
- prefix
Optional prefix for parsing configuration. Default to None
- workerId
Unique identifier for the worker. Default is a random UUID
- position
InitialPositionInStreamExtended Default is TRIM_HORIZON
- processConfig
KCLConsumer.ProcessConfig Default is
ProcessConfig.default
with autoCommit set to false- F
- LE
- returns
- def kclConfig[F[_]](config: LocalstackConfig, streamName: String, appName: String, workerId: String, position: InitialPositionInStreamExtended, processConfig: ProcessConfig)(implicit F: Async[F], LE: LogEncoders): Resource[F, Config[F]]
Creates a KCLConsumerFS2.Config that is compliant with Localstack.
Creates a KCLConsumerFS2.Config that is compliant with Localstack.
- config
- streamName
Name of stream to consume
- appName
Application name for the consumer. Used for the dynamodb table name as well as the metrics namespace.
- workerId
Unique identifier for the worker. Typically a UUID.
- position
- processConfig
- F
- LE
- returns
- def kclConsumer[F[_]](streamName: String, appName: String, prefix: Option[String] = None, workerId: String = Utils.randomUUIDString, position: InitialPositionInStreamExtended = InitialPositionInStreamExtended.newInitialPosition(
InitialPositionInStream.TRIM_HORIZON
), processConfig: ProcessConfig = KCLConsumerFS2.defaultProcessConfig)(implicit F: Async[F], P: Parallel[F], LE: LogEncoders): Resource[F, KCLConsumerFS2[F]]Runs a KCLConsumerFS2 that is compliant with Localstack.
Runs a KCLConsumerFS2 that is compliant with Localstack. Also exposes a Deferred that will complete when the consumer has started processing records. Useful for allowing tests time for the consumer to start before processing the stream.
- streamName
Name of stream to consume
- appName
Application name for the consumer. Used for the dynamodb table name as well as the metrics namespace.
- prefix
Optional prefix for parsing configuration. Default to None
- workerId
Unique identifier for the worker. Default to a random UUID.
- position
InitialPositionInStreamExtended. Default to TRIM_HORIZON
- processConfig
KCLConsumer.ProcessConfig Default is
ProcessConfig.default
with autoCommit set to false- F
- LE
- returns
KCLConsumerFS2 in a Resource
- def kclConsumer[F[_]](config: LocalstackConfig, streamName: String, appName: String, workerId: String, position: InitialPositionInStreamExtended, processConfig: ProcessConfig)(implicit F: Async[F], P: Parallel[F], LE: LogEncoders): Resource[F, KCLConsumerFS2[F]]
Runs a KCLConsumerFS2 that is compliant with Localstack.
Runs a KCLConsumerFS2 that is compliant with Localstack. Also exposes a Deferred that will complete when the consumer has started processing records. Useful for allowing tests time for the consumer to start before processing the stream.
- config
- streamName
Name of stream to consume
- appName
Application name for the consumer. Used for the dynamodb table name as well as the metrics namespace.
- workerId
Unique identifier for the worker. Typically a UUID.
- position
- processConfig
- F
- LE
- returns
- def kclMultiConfig[F[_]](tracker: MultiStreamTracker, appName: String, prefix: Option[String] = None, workerId: String = Utils.randomUUIDString, processConfig: ProcessConfig = KCLConsumerFS2.defaultProcessConfig)(implicit F: Async[F], LE: LogEncoders): Resource[F, Config[F]]
Creates a KCLConsumerFS2.Config that is compliant with Localstack.
Creates a KCLConsumerFS2.Config that is compliant with Localstack.
- tracker
- appName
Application name for the consumer. Used for the dynamodb table name as well as the metrics namespace.
- prefix
Optional prefix for parsing configuration. Default to None
- workerId
Unique identifier for the worker. Default is a random UUID Default is TRIM_HORIZON
- processConfig
KCLConsumer.ProcessConfig Default is
ProcessConfig.default
with autoCommit set to false- F
- LE
- returns
- def kclMultiConfig[F[_]](config: LocalstackConfig, tracker: MultiStreamTracker, appName: String, workerId: String, processConfig: ProcessConfig)(implicit F: Async[F], LE: LogEncoders): Resource[F, Config[F]]
Creates a KCLConsumerFS2.Config that is compliant with Localstack.
Creates a KCLConsumerFS2.Config that is compliant with Localstack.
- config
- tracker
- appName
Application name for the consumer. Used for the dynamodb table name as well as the metrics namespace.
- workerId
Unique identifier for the worker. Typically a UUID.
- processConfig
- F
- LE
- returns
- def kclMultiConsumer[F[_]](tracker: MultiStreamTracker, appName: String, prefix: Option[String] = None, workerId: String = Utils.randomUUIDString, processConfig: ProcessConfig = KCLConsumerFS2.defaultProcessConfig)(implicit F: Async[F], P: Parallel[F], LE: LogEncoders): Resource[F, KCLConsumerFS2[F]]
Runs a KCLConsumerFS2 that is compliant with Localstack.
Runs a KCLConsumerFS2 that is compliant with Localstack. Also exposes a Deferred that will complete when the consumer has started processing records. Useful for allowing tests time for the consumer to start before processing the stream.
- tracker
- appName
Application name for the consumer. Used for the dynamodb table name as well as the metrics namespace.
- prefix
Optional prefix for parsing configuration. Default to None
- workerId
Unique identifier for the worker. Default to a random UUID.
- processConfig
KCLConsumer.ProcessConfig Default is
ProcessConfig.default
with autoCommit set to false- F
- LE
- returns
KCLConsumerFS2 in a Resource
- def kclMultiConsumer[F[_]](config: LocalstackConfig, tracker: MultiStreamTracker, appName: String, workerId: String, processConfig: ProcessConfig)(implicit F: Async[F], P: Parallel[F], LE: LogEncoders): Resource[F, KCLConsumerFS2[F]]
Runs a KCLConsumerFS2 that is compliant with Localstack.
Runs a KCLConsumerFS2 that is compliant with Localstack. Also exposes a Deferred that will complete when the consumer has started processing records. Useful for allowing tests time for the consumer to start before processing the stream.
- config
- tracker
- appName
Application name for the consumer. Used for the dynamodb table name as well as the metrics namespace.
- workerId
Unique identifier for the worker. Typically a UUID.
- processConfig
- F
- LE
- returns
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])