com.paypal.cascade.akka

mailbox

package mailbox

Visibility
  1. Public
  2. All

Type Members

  1. case class ExpiredLetter(message: Any, sender: ActorRef, recipient: ActorRef) extends Product with Serializable

    A wrapper for Messages that went "stale" by sitting in the Mailbox's queue for longer than mailbox-expiration-timems before being dequeued.

    A wrapper for Messages that went "stale" by sitting in the Mailbox's queue for longer than mailbox-expiration-timems before being dequeued. com.paypal.cascade.akka.mailbox.ExpiredLetters are still delivered to the original receiving Actor, as this is how akka works. In the future, it may make sense to have an com.paypal.cascade.akka.mailbox.ExpiredLetter event stream similar to the akka.actor.DeadLetter stream/handler, and avoid delivering com.paypal.cascade.akka.mailbox.ExpiredLetters to the original recipient.

    message

    the original message sent by sender

    sender

    the sender of the expired message

    recipient

    the intended recipient of the expired message

  2. case class ExpiringBoundedMailbox(capacity: Int, pushTimeOut: FiniteDuration, messageExpiration: FiniteDuration) extends MailboxType with ProducesMessageQueue[MessageQueue] with Product with Serializable

    akka BoundedMailbox that will immediately send a Status.Failure to the sender if the mailbox is full and the message can't be delivered within the push timeout, or if the message sits in the mailbox longer than the expiration timeout.

    akka BoundedMailbox that will immediately send a Status.Failure to the sender if the mailbox is full and the message can't be delivered within the push timeout, or if the message sits in the mailbox longer than the expiration timeout.

    Note that this Mailbox requires an actor system on creation.

Value Members

  1. object ExpiringBoundedMailbox extends Serializable

Ungrouped