akka.channels

Channels

trait Channels[P <: ChannelList, C <: ChannelList] extends AnyRef

Typed channels atop untyped actors.

The idea is that the actor declares all its input types up front, including what it expects the sender to handle wrt.replies, and then ChannelRef carries this information for statically verifying that messages sent to an actor have an actual chance of being processed.

There are several implementation-imposed restrictions:

Self Type
Channels[P, C] with Actor
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Channels
  2. AnyRef
  3. Any
Implicitly
  1. by anyOps
  2. by any2stringadd
  3. by any2stringfmt
  4. by any2ArrowAssoc
  5. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def -!->[C <: ChannelList](channel: ChannelRef[C]): Channels[P, C]

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to AnyOps[Channels[P, C]] performed by method anyOps in akka.channels.
    Definition Classes
    AnyOps
    Annotations
    @macroImpl( ... )
  6. def ->[B](y: B): (Channels[P, C], B)

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to ArrowAssoc[Channels[P, C]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. def -?->[C <: ChannelList](channel: ChannelRef[C]): Future[_]

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to AnyOps[Channels[P, C]] performed by method anyOps in akka.channels.
    Definition Classes
    AnyOps
    Annotations
    @macroImpl( ... )
  8. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def behaviorist[R, Ch](wrapped: Boolean)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Ch]): (R) ⇒ Unit

  12. def channel[T]: (Nothing) ⇒ Unit

    Declare an input channel of the given type; the returned object takes a partial function:

    Declare an input channel of the given type; the returned object takes a partial function:

    channel[A] {
    case (a, s) =>
      // a is of type A and
      // s is a ChannelRef for the sender, capable of sending the declared reply type for A
    }
    Annotations
    @macroImpl( ... )
  13. var channelListTypeTag: scala.reflect.api.JavaUniverse.TypeTag[C]

  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def createChild[Pa <: ChannelList, Ch <: ChannelList](factory: Actor with Channels[Pa, Ch], name: String): ChannelRef[Ch]

    Create a child actor with properly typed ChannelRef and the given name, verifying that this actor can handle everything which the child tries to send via its parent ChannelRef.

    Create a child actor with properly typed ChannelRef and the given name, verifying that this actor can handle everything which the child tries to send via its parent ChannelRef.

    Annotations
    @macroImpl( ... )
  16. def createChild[Pa <: ChannelList, Ch <: ChannelList](factory: Actor with Channels[Pa, Ch]): ChannelRef[Ch]

    Create a child actor with properly typed ChannelRef, verifying that this actor can handle everything which the child tries to send via its parent ChannelRef.

    Create a child actor with properly typed ChannelRef, verifying that this actor can handle everything which the child tries to send via its parent ChannelRef.

    Annotations
    @macroImpl( ... )
  17. def ensuring(cond: (Channels[P, C]) ⇒ Boolean, msg: ⇒ Any): Channels[P, C]

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to Ensuring[Channels[P, C]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (Channels[P, C]) ⇒ Boolean): Channels[P, C]

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to Ensuring[Channels[P, C]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: ⇒ Any): Channels[P, C]

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to Ensuring[Channels[P, C]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): Channels[P, C]

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to Ensuring[Channels[P, C]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

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

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

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. final def parentChannel: ChannelRef[P]

    Properly typed ChannelRef for the context.

    Properly typed ChannelRef for the context.parent.

  32. final lazy val receive: AbstractPartialFunction[Any, Unit] { val index: scala.collection.immutable.Seq[Class[_]] }

  33. implicit final def selfChannel: ChannelRef[C]

    The properly typed self-channel is used implicitly when sending to other typed channels for verifying that replies can be handled.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. val value: Channels[P, C]

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to AnyOps[Channels[P, C]] performed by method anyOps in akka.channels.
    Definition Classes
    AnyOps
  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def [B](y: B): (Channels[P, C], B)

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to ArrowAssoc[Channels[P, C]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (channels: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (channels: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: Channels[P, C]

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to ArrowAssoc[Channels[P, C]] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (channels: ArrowAssoc[Channels[P, C]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Channels[P, C]

    Implicit information
    This member is added by an implicit conversion from Channels[P, C] to Ensuring[Channels[P, C]] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (channels: Ensuring[Channels[P, C]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion anyOps from Channels[P, C] to AnyOps[Channels[P, C]]

Inherited by implicit conversion any2stringadd from Channels[P, C] to StringAdd

Inherited by implicit conversion any2stringfmt from Channels[P, C] to StringFormat

Inherited by implicit conversion any2ArrowAssoc from Channels[P, C] to ArrowAssoc[Channels[P, C]]

Inherited by implicit conversion any2Ensuring from Channels[P, C] to Ensuring[Channels[P, C]]

Ungrouped