Class

peds.akka.envelope

EnvelopeSending

Related Doc: package envelope

Permalink

implicit final class EnvelopeSending extends AnyVal

This implementation is ported from Derek Wyatt's blog post Parts of this blog post are adapted here for documentation.

EnvelopeSending is an implicit value type class that extends the functionality of the ActorRef to provide the hook that wrap messages inside a rich envelope containg meta data about the message.

With this implicit class in scope, send(..) a message to an ActorRef will result in wrapping the message in an Envelope. send or sendForward must be used rather than the regular ActorRef's tell, forward, and ! methods, which will remain unwrapped with an envelope. It is easy to "drop" the envelope as a result, so as long as the envelope is important care should be taken to use the enveloping methods.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EnvelopeSending
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EnvelopeSending(underlying: ActorRef)

    Permalink

Value Members

  1. def !+(envelope: Envelope)(implicit sender: ActorRef = ActorRef.noSender): Unit

    Permalink

    Send a message enclosed in a message envelope containing meta date about the message.

  2. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  3. final def ##(): Int

    Permalink
    Definition Classes
    Any
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. def send(envelope: Envelope)(implicit sender: ActorRef = ActorRef.noSender): Unit

    Permalink

    Send a message enclosed in a message envelope containing meta date about the message.

  9. def sendForward(envelope: Envelope)(implicit context: ActorContext): Unit

    Permalink

    Forward a message enclosed in a message envelope containg meta data about the message.

  10. def toString(): String

    Permalink
    Definition Classes
    Any
  11. val underlying: ActorRef

    Permalink

Inherited from AnyVal

Inherited from Any

Ungrouped