akka.actor

Channel

trait Channel [-T] extends Channel[T]

Abstraction for unification of sender and senderFuture for later reply. Can be stored away and used at a later point in time.

The possible reply channel which can be passed into ! and tryTell is always untyped, as there is no way to utilize its real static type without requiring runtime-costly manifests.

Linear Supertypes
Channel[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Channel
  2. Channel
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def ! (msg: T)(implicit sender: UntypedChannel): Unit

    Scala API.

    Scala API.

    Sends the specified message to the channel.

    Attributes
    abstract

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  9. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  12. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  13. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  14. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  16. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  17. def sendException (ex: Throwable): Boolean

    Try to send an exception.

    Try to send an exception. Not all channel types support this, one notable positive example is Future. Failure to send is silent.

    returns

    whether sending was successful

  18. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  19. def tell (msg: T, sender: UntypedChannel): Unit

    Java API.

    Java API.

    Sends the specified message to the channel, i.e. fire-and-forget semantics, including the sender reference if possible (not supported on all channels).

    actor.tell(message, context);
    

  20. def tell (msg: T): Unit

    Java API.

    Java API.

    Sends the specified message to the channel, i.e. fire-and-forget semantics.

    actor.tell(message);
    

  21. def toString (): String

    Definition Classes
    AnyRef → Any
  22. def tryTell (msg: T)(implicit sender: UntypedChannel): Boolean

    Scala and Java API.

    Scala and Java API.

    Try to send the specified message to the channel, i.e. fire-and-forget semantics, including the sender reference if possible (not supported on all channels).

    From Java:

    actor.tryTell(message);
    actor.tryTell(message, context);
    

    From Scala:

    actor tryTell message
    actor.tryTell(message)(sender)
    

  23. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def sendOneWay (msg: T, sender: UntypedChannel): Unit

    Java API.

    Java API.

    Sends the specified message to the channel, i.e. fire-and-forget semantics, including the sender reference if possible (not supported on all channels).

    actor.sendOneWay(message, context);
    

    Annotations
    @deprecated
    Deprecated

    Use 'tell' instead

  2. def sendOneWay (msg: T): Unit

    Sends the specified message to the channel, i.

    Sends the specified message to the channel, i.e. fire-and-forget semantics.

    actor.sendOneWay(message);
    

    Annotations
    @deprecated
    Deprecated

    Use 'tell' instead

  3. def sendOneWaySafe (msg: T, sender: UntypedChannel): Boolean

    Java API.

    Java API.

    Try to send the specified message to the channel, i.e. fire-and-forget semantics, including the sender reference if possible (not supported on all channels).

    actor.sendOneWay(message, context);
    

    Annotations
    @deprecated
    Deprecated

    Use 'tryTell' instead

  4. def sendOneWaySafe (msg: T): Boolean

    Java API.

    Java API.

    Try to send the specified message to the channel, i.e. fire-and-forget semantics.

    actor.sendOneWay(message);
    

    Annotations
    @deprecated
    Deprecated

    Use 'tryTell' instead

Inherited from Channel[T]

Inherited from AnyRef

Inherited from Any