Consumer

object Consumer
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

case
class DecodingFailure(msg: String) extends Exception with NoStackTrace
case
class Message[A](id: MessageId, key: MessageKey, payload: A)
object OnFailure
Companion
class
sealed
trait OnFailure
Companion
object
sealed abstract
class Settings[F[_], E]
Companion
object
object Settings

Consumer options such as subscription initial position and message logger.

Consumer options such as subscription initial position and message logger.

Companion
class

Value members

Concrete methods

def make[F[_] : Sync, E](client: T, topic: Topic, sub: Subscription, messageDecoder: Array[Byte] => F[E]): Resource[F, Consumer[F, E]]

It creates a Consumer with the supplied message decoder (schema support disabled).

It creates a Consumer with the supplied message decoder (schema support disabled).

A Topic can either be Single or Multi for multi topic subscriptions.

Note that this does not create a subscription to any Topic, you can use Consumer#subscribe for this purpose.

def make[F[_] : Sync, E](client: T, topic: Topic, sub: Subscription, messageDecoder: Array[Byte] => F[E], decodingErrorHandler: Throwable => F[OnFailure]): Resource[F, Consumer[F, E]]

It creates a Consumer with the supplied message decoder (schema support disabled) and decoding error handler.

It creates a Consumer with the supplied message decoder (schema support disabled) and decoding error handler.

A Topic can either be Single or Multi for multi topic subscriptions.

Note that this does not create a subscription to any Topic, you can use Consumer#subscribe for this purpose.

def make[F[_] : Sync, E](client: T, topic: Topic, sub: Subscription, messageDecoder: Array[Byte] => F[E], settings: Settings[F, E]): Resource[F, Consumer[F, E]]

It creates a Consumer with the supplied message decoder (schema support disabled) and settings.

It creates a Consumer with the supplied message decoder (schema support disabled) and settings.

A Topic can either be Single or Multi for multi topic subscriptions.

Note that this does not create a subscription to any Topic, you can use Consumer#subscribe for this purpose.

def make[F[_] : Sync, E](client: T, topic: Topic, sub: Subscription, messageDecoder: Array[Byte] => F[E], decodingErrorHandler: Throwable => F[OnFailure], settings: Settings[F, E]): Resource[F, Consumer[F, E]]

It creates a Consumer with the supplied message decoder (schema support disabled), decoding error handler and settings.

It creates a Consumer with the supplied message decoder (schema support disabled), decoding error handler and settings.

A Topic can either be Single or Multi for multi topic subscriptions.

Note that this does not create a subscription to any Topic, you can use Consumer#subscribe for this purpose.

def make[F[_] : Sync, E](client: T, topic: Topic, sub: Subscription, schema: Schema[E]): Resource[F, Consumer[F, E]]

It creates a Consumer with the supplied pulsar schema.

It creates a Consumer with the supplied pulsar schema.

A Topic can either be Single or Multi for multi topic subscriptions.

Note that this does not create a subscription to any Topic, you can use Consumer#subscribe for this purpose.

def make[F[_] : Sync, E](client: T, topic: Topic, sub: Subscription, schema: Schema[E], settings: Settings[F, E]): Resource[F, Consumer[F, E]]

It creates a Consumer with the supplied pulsar schema and settings.

It creates a Consumer with the supplied pulsar schema and settings.

A Topic can either be Single or Multi for multi topic subscriptions.

Note that this does not create a subscription to any Topic, you can use Consumer#subscribe for this purpose.