Class/Object

lchannels

ActorIn

Related Docs: object ActorIn | package lchannels

Permalink

class ActorIn[T] extends lchannels.medium.In[Actor, T] with Serializable

Actor-based input channel endpoint, usually created through the companion object or via ActorChannel.factory.

Attributes
protected
Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, medium.In[Actor, T], In[T], Channel[Receive], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActorIn
  2. Serializable
  3. Serializable
  4. In
  5. In
  6. Channel
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ActorIn(bref: ActorRef[Dest[T]])(implicit as: ActorSystem)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def ?[R](f: (T) ⇒ R)(implicit atMost: Duration): R

    Permalink

    Wait for a message, pass it as argument to f, get the return value.

    Wait for a message, pass it as argument to f, get the return value.

    Once a message msg is received, this method returns f(msg).

    atMost

    Maximum wait time

    Definition Classes
    In
    Exceptions thrown

    java.lang.IllegalArgumentException if atMost is Duration.Undefined

    java.lang.InterruptedException if the current thread is interrupted while waiting

    java.util.concurrent.TimeoutException if after waiting for atMost, no message arrives

    scala.util.control.NonFatal in case of other errors (e.g. deserialization or network issues)

  5. def ??[R](f: (Try[T]) ⇒ R)(implicit atMost: Duration): R

    Permalink

    Wait for a message or error, pass it as argument to f, get the return value.

    Wait for a message or error, pass it as argument to f, get the return value.

    Once a message msg is received, this method returns f(Success(msg)). In case of errors, the method returns f(Failure(exception)).

    atMost

    Maximum wait time

    Definition Classes
    In
  6. final def _markAsUsed(): Unit

    Permalink
    Attributes
    protected
  7. implicit val as: ActorSystem

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def future(implicit ec: ExecutionContext): Future[T]

    Permalink

    Return a future that will be completed when the channel endpoint receives a value, or incurs in an input error.

    Return a future that will be completed when the channel endpoint receives a value, or incurs in an input error.

    Definition Classes
    In
  14. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  17. final def markAsUsed(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Channel
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def path: ActorPath

    Permalink

    Return the path of the Akka actor giving access to the channel endpoint

    Return the path of the Akka actor giving access to the channel endpoint

    The path allows to (remotely) proxy the channel endpoint, via $.apply.

  22. def receive(implicit atMost: Duration): T

    Permalink

    Receive and return a message, blocking until its arrival.

    Receive and return a message, blocking until its arrival.

    atMost

    Maximum wait time

    Definition Classes
    ActorInIn
    Exceptions thrown

    AlreadyUsed if the channel endpoint was already used for input

    java.lang.IllegalArgumentException if atMost is Duration.Undefined

    java.lang.InterruptedException if the current thread is interrupted while waiting

    java.util.concurrent.TimeoutException if after waiting for atMost, no message arrives

    scala.util.control.NonFatal in case of other errors (e.g. deserialization or network issues)

  23. def receive(): T

    Permalink

    Receive and return a message, blocking until its arrival.

    Receive and return a message, blocking until its arrival.

    The default implementation of this method corresponds to atMost:* with an infinite timeout value.

    Definition Classes
    In
    Exceptions thrown

    AlreadyUsed if the channel endpoint was already used for input

    java.lang.IllegalArgumentException if atMost is Duration.Undefined

    java.lang.InterruptedException if the current thread is interrupted while waiting

    java.util.concurrent.TimeoutException if after waiting for atMost, no message arrives

    scala.util.control.NonFatal in case of other errors (e.g. deserialization or network issues)

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

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    ActorIn → AnyRef → Any
  26. def tryReceive(implicit atMost: Duration): Try[T]

    Permalink

    Receive and return message, blocking until its arrival, or until a failure.

    Receive and return message, blocking until its arrival, or until a failure.

    Once a message msg is received, this method returnsSuccess(msg). In case of errors, the method returns Failure(exception).

    atMost

    Maximum wait time

    Definition Classes
    In
  27. def tryReceive(): Try[T]

    Permalink

    Receive and return message, blocking until its arrival, or until a failure.

    Receive and return message, blocking until its arrival, or until a failure.

    The default implementation of this method corresponds to atMost:* with an infinite timeout value.

    Once a message msg is received, this method returnsSuccess(msg). In case of errors, the method returns Failure(exception).

    Definition Classes
    In
  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from medium.In[Actor, T]

Inherited from In[T]

Inherited from Channel[Receive]

Inherited from AnyRef

Inherited from Any

Ungrouped