Class/Object

lchannels

StreamIn

Related Docs: object StreamIn | package lchannels

Permalink

class StreamIn[T] extends lchannels.medium.In[Stream, T]

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

Attributes
protected
Linear Supertypes
medium.In[Stream, T], In[T], Channel[Receive], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StreamIn
  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 StreamIn(strm: StreamManager)(implicit ec: ExecutionContext)

    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. final def getClass(): Class[_]

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. 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
    StreamInIn
    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)

  20. 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
    StreamInIn
    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. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from medium.In[Stream, T]

Inherited from In[T]

Inherited from Channel[Receive]

Inherited from AnyRef

Inherited from Any

Ungrouped