gopher

SelectTransputer

trait SelectTransputer extends ForeverSelectorBuilder with Transputer

Transputer, where dehaviour can be described by selector function

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

Type Members

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

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

    Definition Classes
    Transputer

Abstract Value Members

  1. abstract def api: GopherAPI

    Definition Classes
    Transputer
  2. abstract def recoverFactory: () ⇒ Transputer

    Used for recover failed instances

    Used for recover failed instances

    Definition Classes
    Transputer

Concrete Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def +(p: Transputer): ParTransputer

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

    Definition Classes
    AnyRef → Any
  5. object InPort

    Definition Classes
    Transputer
  6. object OutPort

    Definition Classes
    Transputer
  7. 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
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def copyPorts(prev: Transputer): Unit

    Definition Classes
    Transputer
  11. def copyState(prev: Transputer): Unit

    copyState from previous instance when transputer is restarted.

    copyState from previous instance when transputer is restarted. can be overriden in subclasses (by default: do nothing)

    Note, that port connection is restored before call of copyState

    Definition Classes
    Transputer
  12. implicit def ec: ExecutionContext

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. 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
  17. def futureInput[A](f: Future[A]): FutureInput[A]

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

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

    Definition Classes
    SelectorBuilder
  20. def goOnce: Future[Unit]

    Definition Classes
    SelectTransputerTransputer
  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. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. implicit def logSource: LogSource[Transputer]

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

    configure loop in selector

  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 onEscalatedFailure(ex: Throwable): Unit

    called when failure is escalated.

    called when failure is escalated.

    Attributes
    protected
    Definition Classes
    SelectTransputerTransputer
  31. def onIdle(arg: SkipSelectorArgument[Unit]): SelectTransputer.this.type

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

    Definition Classes
    SelectorBuilder
  33. def onResume(): Unit

    called when transducer is choose resume durign recovery.

    called when transducer is choose resume durign recovery.

    Attributes
    protected
    Definition Classes
    Transputer
  34. def onStop(): Unit

    called when transputer is stopped.

    called when transputer is stopped.

    Attributes
    protected
    Definition Classes
    SelectTransputerTransputer
  35. def onWrite[E](ch: Output[E])(arg: WriteSelectorArgument[E, Unit]): SelectTransputer.this.type

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

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

    Definition Classes
    ForeverSelectorBuilder
  38. def recover(f: PartialFunction[Throwable, Directive]): Unit

    set recover function

    set recover function

    Definition Classes
    Transputer
  39. var selectorInit: () ⇒ Unit

    Attributes
    protected
  40. def selectorRun: Future[Unit]

    Definition Classes
    SelectorBuilder
  41. def start(): Future[Unit]

    Definition Classes
    Transputer
  42. def stop(): Unit

    When called inside loop - stop execution of selector, from outside - terminate transformer

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

    Definition Classes
    AnyRef
  44. def toString(): String

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

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

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

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

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

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

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

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

    Definition Classes
    ForeverSelectorBuilder
    Annotations
    @inline()

Inherited from Transputer

Inherited from ForeverSelectorBuilder

Inherited from SelectorBuilder[Unit]

Inherited from AnyRef

Inherited from Any

Ungrouped