Consumer

trait Consumer[F[_], E]
Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def ack(id: MessageId): F[Unit]

Acknowledge for a single message.

Acknowledge for a single message.

def autoSubscribe: Stream[F, E]

Auto-ack subscription that consumes the message payload directly.

Auto-ack subscription that consumes the message payload directly.

def nack(id: MessageId): F[Unit]

Negative acknowledge for a single message.

Negative acknowledge for a single message.

def subscribe: Stream[F, Message[E]]

It consumes Consumer.Messages, which contain the ID and the PAYLOAD.

It consumes Consumer.Messages, which contain the ID and the PAYLOAD.

If you don't need manual acking, consider using autoSubscribe instead.

def unsubscribe: F[Unit]

This operation fails when performed on a shared subscription where multiple consumers are currently connected.

This operation fails when performed on a shared subscription where multiple consumers are currently connected.

If you do not need a durable subscription, consider using a Subscription.Mode.NonDurable instead.