gopher

SelectProcessor

class SelectProcessor extends ForeverSelectorBuilder with Processor with FlowTermination[Unit]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SelectProcessor
  2. FlowTermination
  3. Processor
  4. ForeverSelectorBuilder
  5. SelectorBuilder
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SelectProcessor(api: GopherAPI)

Type Members

  1. class InPort[A] extends Input[A]

    Definition Classes
    Processor
  2. class OutPort[A] extends Output[A]

    Definition Classes
    Processor

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def +(p: Processor): ParProcessor

    Definition Classes
    Processor
  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. object InPort

    Definition Classes
    Processor
  6. object OutPort

    Definition Classes
    Processor
  7. val api: GopherAPI

    Definition Classes
    SelectProcessorProcessor
  8. macro def apply(f: PartialFunction[Any, Unit]): Future[Unit]

    provide syntax for running select loop as async operation.

    provide syntax for running select loop as async operation.

    val receiver = gopherApi.select.forever{
    case x: channel.read => Console.println(s"received:$x")
    }
    Definition Classes
    ForeverSelectorBuilder
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def doExit(a: Unit): Unit

    terminate current flow and leave a as result of flow.

    terminate current flow and leave a as result of flow. have no effect if flow is already completed.

    Definition Classes
    SelectProcessorFlowTermination
    Annotations
    @inline()
  12. def doThrow(e: Throwable): Unit

    terminate current flow with exception.

    terminate current flow with exception. Mostly used internally.

    Definition Classes
    SelectProcessorFlowTermination
    Annotations
    @inline()
  13. implicit def ec: ExecutionContext

    Definition Classes
    SelectorBuilder
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. macro def foreach(f: (Any) ⇒ Unit): Unit

    provide syntax for running select loop inside go (or async) block example of usage:

    provide syntax for running select loop inside go (or async) block example of usage:

    go {
    .....
    for(s <- gopherApi.select.forever)
      s match {
        case x: ch1.read => do something with x
        case q: chq.read => implicitly[FlowTermination[Unit]].doExit(())
        case y: ch2.write if (y=expr) => do something with y
        case _ => do somethig when idle.
      }

    Note, that you can use implicit instance of [FlowTermination[Unit]] to stop loop.

    Definition Classes
    ForeverSelectorBuilder
  18. def futureInput[A](f: Future[A]): FutureInput[A]

    Definition Classes
    SelectorBuilder
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def go: Future[Unit]

    Definition Classes
    SelectorBuilder
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. macro def idle(body: Unit): ForeverSelectorBuilder

    Definition Classes
    ForeverSelectorBuilder
  23. def idleWithFlowTerminationAsync(f: (ExecutionContext, FlowTermination[Unit]) ⇒ Future[Unit]): ForeverSelectorBuilder

    Definition Classes
    ForeverSelectorBuilder
    Annotations
    @inline()
  24. def isCompleted: Boolean

    check - if flow is completed.

    check - if flow is completed.

    Definition Classes
    SelectProcessorFlowTermination
    Annotations
    @inline()
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. macro def loop(f: PartialFunction[Any, Unit]): Unit

  27. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  30. def onIdle(arg: SkipSelectorArgument[Unit]): SelectProcessor.this.type

    Definition Classes
    SelectorBuilder
  31. def onRead[E](ch: Input[E])(arg: ReadSelectorArgument[E, Unit]): SelectProcessor.this.type

    Definition Classes
    SelectorBuilder
  32. def onWrite[E](ch: Output[E])(arg: WriteSelectorArgument[E, Unit]): SelectProcessor.this.type

    Definition Classes
    SelectorBuilder
  33. macro def reading[A](ch: Input[A])(f: (A) ⇒ Unit): ForeverSelectorBuilder

    Definition Classes
    ForeverSelectorBuilder
  34. def readingWithFlowTerminationAsync[A](ch: Input[A], f: (ExecutionContext, FlowTermination[Unit], A) ⇒ Future[Unit]): SelectProcessor.this.type

    Definition Classes
    ForeverSelectorBuilder
  35. val selector: Selector[Unit]

    Definition Classes
    SelectorBuilder
  36. def stop(): Unit

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

    Definition Classes
    AnyRef
  38. def throwIfNotCompleted(ex: Throwable): Unit

    Definition Classes
    SelectProcessorFlowTermination
    Annotations
    @inline()
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def withIdle(f: (Skip[Unit]) ⇒ Option[Future[Continuated[Unit]]]): SelectProcessor.this.type

    Definition Classes
    SelectorBuilder
    Annotations
    @inline()
  44. def withReader[B](ch: Input[B], f: (ContRead[B, Unit]) ⇒ Option[(In[B]) ⇒ Future[Continuated[Unit]]]): SelectProcessor.this.type

    Definition Classes
    SelectorBuilder
    Annotations
    @inline()
  45. def withWriter[B](ch: Output[B], f: (ContWrite[B, Unit]) ⇒ Option[(B, Future[Continuated[Unit]])]): SelectProcessor.this.type

    Definition Classes
    SelectorBuilder
    Annotations
    @inline()
  46. macro def writing[A](ch: Output[A], x: A)(f: (A) ⇒ Unit): ForeverSelectorBuilder

    Definition Classes
    ForeverSelectorBuilder
  47. def writingWithFlowTerminationAsync[A](ch: Output[A], x: ⇒ A, f: (ExecutionContext, FlowTermination[Unit], A) ⇒ Future[Unit]): ForeverSelectorBuilder

    Definition Classes
    ForeverSelectorBuilder
    Annotations
    @inline()

Inherited from FlowTermination[Unit]

Inherited from Processor

Inherited from ForeverSelectorBuilder

Inherited from SelectorBuilder[Unit]

Inherited from AnyRef

Inherited from Any

Ungrouped