← ZIO SQS docs

Producer

zio.sqs.producer.Producer
See theProducer companion trait
object Producer

Factory for Producer.

Attributes

Companion
trait
Source
Producer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Producer.type

Members list

Value members

Concrete methods

def make[T](queueUrl: String, serializer: Serializer[T], settings: ProducerSettings = ...): ZIO[Sqs & Scope, Throwable, Producer[T]]

Instantiates a new producer.

Instantiates a new producer.

Type parameters

T

type of the event to publish

Value parameters

queueUrl

url of the queue to publish events. A queue URL can be obtained with zio.sqs.Utils.getQueueUrl.

serializer

Serializer for the published event. If the published event is a string, zio.sqs.serialization.Serializer.serializeString can be used.

settings

parameters used to instantiate the producer.

Attributes

Returns

producer for publishing events. The producer's main background fiber is tied to the enclosing Scope. Retries run in daemon fibers.

Source
Producer.scala