Class ShardingProducerController.MessageWithConfirmation<A>

java.lang.Object
org.apache.pekko.cluster.sharding.typed.delivery.ShardingProducerController.MessageWithConfirmation<A>
All Implemented Interfaces:
Serializable, ShardingProducerControllerImpl.InternalCommand, ShardingProducerControllerImpl.UnsealedInternalCommand, scala.Equals, scala.Product
Enclosing class:
ShardingProducerController

public static final class ShardingProducerController.MessageWithConfirmation<A> extends Object implements ShardingProducerControllerImpl.UnsealedInternalCommand, scala.Product, Serializable
For sending confirmation message back to the producer when the message has been confirmed. Typically used with context.ask from the producer.

If DurableProducerQueue is used the confirmation reply is sent when the message has been successfully stored, meaning that the actual delivery to the consumer may happen later. If DurableProducerQueue is not used the confirmation reply is sent when the message has been fully delivered, processed, and confirmed by the consumer.

See Also:
  • Constructor Details

    • MessageWithConfirmation

      public MessageWithConfirmation(String entityId, A message, ActorRef<Done> replyTo)
  • Method Details

    • entityId

      public String entityId()
    • message

      public A message()
    • replyTo

      public ActorRef<Done> replyTo()
    • copy

      public <A> ShardingProducerController.MessageWithConfirmation<A> copy(String entityId, A message, ActorRef<Done> replyTo)
    • copy$default$1

      public <A> String copy$default$1()
    • copy$default$2

      public <A> A copy$default$2()
    • copy$default$3

      public <A> ActorRef<Done> copy$default$3()
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object x$1)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object