+act #15163 allows to suppress certain messages from being dead-letter-ed

This enables suppressing dead-lettering of certain messages. 

I made it internal api for now, and I didn't add it to any messages yet - so this is up for discussion where to add it (if at all) in akka-core (Patrik suggested PoisonPill for example - on one hand sounds good, on the other if I'm PoisonPilling a guy many times, maybe my logic sucks and I want to notice via deadletters?).

If we think this is universally useful enough to be public I'll add docs.

This will eventually be used to resolve https://github.com/akka/akka/issues/15163 in akka-streams, but only after we've released 2.3.8 (as streams depend on released akka).
Oh, right – me as well actually, reads better. Thanks for catching this!

On 28 November 2014 at 15:30:04, Roland Kuhn (notifications@github.com) wrote:

In akka-actor/src/main/scala/akka/actor/ActorRef.scala:

> @@ -456,6 +456,12 @@ case class DeadLetter(message: Any, sender: ActorRef, recipient: ActorRef) {
>    require(recipient ne null, "DeadLetter recipient may not be null")
>  }
>   
> +/**
> + * INTERNAL API
> + * Messages extending this trait will not be sent to dead-letters – use with caution.
> + */
> +private[akka] trait SuppressDeadLetters
I still like the one best which you left out: case class X with DeadLetterSuppression

—
Reply to this email directly or view it on GitHub.

-- 
Konrad 'ktoso' Malawski
hAkker @ typesafe
http://akka.io