← ZIO SQS docs

ProducerEvent

zio.sqs.producer.ProducerEvent
See theProducerEvent companion object
final case class ProducerEvent[T](data: T, attributes: Map[String, MessageAttributeValue], groupId: Option[String], deduplicationId: Option[String], delay: Option[Duration] = ...)

Event to publish to SQS.

Type parameters

T

type of the payload for the event.

Value parameters

attributes

a map of attributes to set.

data

payload to publish.

deduplicationId

token used for deduplication of sent messages.

delay

in order to delay delivery of the message. Allowed values: 0 to 15 minutes. The producer sends the whole seconds of the delay; any fraction of a second is dropped.

groupId

assigns a specific message group to the message.

Attributes

Companion
object
Source
ProducerEvent.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala