NormalMessagingChannel

lepus.client.apis.NormalMessagingChannel

Attributes

Source
MessagingAPI.scala
Graph
Supertypes
trait Publishing[F]
trait Consuming[F]
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Inherited methods

Attributes

Inherited from:
Consuming
Source
MessagingAPI.scala

Consumes and decodes messages

Consumes and decodes messages

Note that you MUST acknowledge (ack, reject, nack) messages if you select any ConsumeMode but ConsumeMode.RaiseOnError(false)

Value parameters

arguments

extra params

consumerTag

add consumer tag, default tag is UUID

exclusive

request exclusive consumer right

mode

what to do when a message cannot be decoded

noLocal

don't consume messages published on this connection

queue

QueueName to consume from

Attributes

Inherited from:
Consuming
Source
MessagingAPI.scala

Consumes raw messages

Consumes raw messages

Attributes

Inherited from:
Consuming
Source
MessagingAPI.scala

Attributes

Inherited from:
Consuming
Source
MessagingAPI.scala

Attributes

Inherited from:
Consuming
Source
MessagingAPI.scala
final inline def publish[T](exchange: ExchangeName, routingKey: ShortString, payload: T)(using enc: MessageEncoder[T])(using NotGiven[T <:< Message[_]]): F[Unit]

Creates a message with given payload, encodes it and then publishes it as not mandatory

Creates a message with given payload, encodes it and then publishes it as not mandatory

Attributes

Inherited from:
Publishing
Source
MessagingAPI.scala

Encodes and publishes a message that is not mandatory

Encodes and publishes a message that is not mandatory

Attributes

Inherited from:
Publishing
Source
MessagingAPI.scala
final inline def publish[T : MessageEncoder](env: Envelope[T]): F[Unit]

Encodes and publishes an envelope, this is a low level operation and is exposed only for special circumstances, always prefer to use other higher level publish methods

Encodes and publishes an envelope, this is a low level operation and is exposed only for special circumstances, always prefer to use other higher level publish methods

Note that if a mandatory message fails in routing, it is returned to the client and you MUST also consume returned if you publish mandatory messages

Attributes

Inherited from:
Publishing
Source
MessagingAPI.scala

Publishes raw message that is not mandatory This is useful if you have handled encoding and want to publish a raw message directly

Publishes raw message that is not mandatory This is useful if you have handled encoding and want to publish a raw message directly

Attributes

Inherited from:
Publishing
Source
MessagingAPI.scala

Publishes raw envelope, this is a low level operation and is exposed only for special circumstances, always prefer to use other higher level publish methods

Publishes raw envelope, this is a low level operation and is exposed only for special circumstances, always prefer to use other higher level publish methods

Note that if a mandatory message fails in routing, it is returned to the client and you MUST also consume returned if you publish mandatory messages

Attributes

Inherited from:
Publishing
Source
MessagingAPI.scala

A pipe that encodes and publishes Envelopes that may or may not be mandatory, And ReturnedMessageRaw for returned messages.

A pipe that encodes and publishes Envelopes that may or may not be mandatory, And ReturnedMessageRaw for returned messages.

Note that this pipe SHOULD be used exclusively, as it is draining from the returned messages that is backed by a queue.

Attributes

Inherited from:
Publishing
Source
MessagingAPI.scala
final def publisherRaw(using Concurrent[F]): (F, EnvelopeRaw) => ReturnedMessageRaw

A pipe that publishes Envelopes that may or may not be mandatory, And ReturnedMessageRaw for returned messages.

A pipe that publishes Envelopes that may or may not be mandatory, And ReturnedMessageRaw for returned messages.

Note that this pipe SHOULD be used exclusively, as it is draining from the returned messages that is backed by a queue.

Attributes

Inherited from:
Publishing
Source
MessagingAPI.scala

Attributes

Inherited from:
Consuming
Source
MessagingAPI.scala

Attributes

Inherited from:
Consuming
Source
MessagingAPI.scala

Attributes

Inherited from:
Consuming
Source
MessagingAPI.scala

Attributes

Inherited from:
Consuming
Source
MessagingAPI.scala

consumes returned messages from the server, this should be used exclusively, or otherwise different instances compete over received values, and each get different set of values.

consumes returned messages from the server, this should be used exclusively, or otherwise different instances compete over received values, and each get different set of values.

Also note that this is a low level operation that is exposed for special circumstances, always prefer to use publisher pipe instead, unless necessary

Attributes

Inherited from:
Publishing
Source
MessagingAPI.scala