Consumer

dev.profunktor.pulsar.Consumer$
See theConsumer companion trait
object Consumer

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class DecodingFailure(msg: String) extends Exception with NoStackTrace

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class Message[A](id: MessageId, key: MessageKey, properties: Map[String, String], raw: Message[Any], payload: A)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object OnFailure

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait OnFailure

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Ack.type
object Nack.type
object Raise.type
sealed abstract class Settings[F[_], E]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Settings

Consumer options such as subscription initial position and message logger.

Consumer options such as subscription initial position and message logger.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes