Class

lchannels

LocalIn

Related Doc: package lchannels

Permalink

class LocalIn[+T] extends lchannels.medium.In[Local, T]

Local input channel endpoint, usually created via LocalChannel.factory.

Linear Supertypes
medium.In[Local, T], In[T], Channel[Receive], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LocalIn
  2. In
  3. In
  4. Channel
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LocalIn(future: Future[T])

    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 asInstanceOf[T0]: T0

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. 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
  12. val future: Future[T]

    Permalink
  13. final def getClass(): Class[_]

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. 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
    LocalInIn
    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)

  21. 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)

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. 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
  25. 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
  26. final def wait(): Unit

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

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

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

Inherited from medium.In[Local, T]

Inherited from In[T]

Inherited from Channel[Receive]

Inherited from AnyRef

Inherited from Any

Ungrouped