Publishing

lepus.client.apis.Publishing
trait Publishing[F[_]]

Attributes

Source:
MessagingAPI.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract 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

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

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

Source:
MessagingAPI.scala

Concrete methods

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

Source:
MessagingAPI.scala

Encodes and publishes a message that is not mandatory

Encodes and publishes a message that is not mandatory

Attributes

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

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

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

Source:
MessagingAPI.scala

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

Source:
MessagingAPI.scala