Packages

trait Transputer extends AnyRef

Reusable unit of application structure, which consists from set of input ports, set of output ports and behaviour

Transputers can be created as elementary behaviour, descibed by select statement and then can be combined into larger structures

Transputers can be recovered from execeptions (i.e. transputer can be restarted or resume execution) or escalated to parent transputers or root superviser.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Transputer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class InPort[A] extends Input[A]
  2. class OutPort[A] extends Output[A]

Abstract Value Members

  1. abstract def api: GopherAPI
  2. abstract def goOnce: Future[Unit]
  3. abstract def recoverFactory: () => Transputer

    Used for recover failed instances

  4. abstract def stop(): Unit

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
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. def copyPorts(prev: Transputer): Unit

    copy conection from previous instance when transputer is restarted.

  8. 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

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def failureLimit(maxFailures: Int = recoveryLimits.maxFailures, windowDuration: Duration = recoveryLimits.windowDuration): Transputer.this.type

    set failure limit.

    set failure limit. (when number of failures during windowsDuration is bigger than maxFailures, TooManyFailures exception is escalated to parent transputer.

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. implicit def logSource: LogSource[Transputer]
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def onEscalatedFailure(ex: Throwable): Unit

    called when failure is escalated.

    called when failure is escalated.

    Attributes
    protected
  20. def onRestart(prev: Transputer): Unit

    called when transducer is restarted.

    called when transducer is restarted.

    prev

    - previous (i.e. failed) instance of trnasputer.

    Attributes
    protected
  21. def onResume(): Unit

    called when transducer is choose to resume durign recovery.

    called when transducer is choose to resume durign recovery.

    Attributes
    protected
  22. def onStart(): Unit

    called when transducer is started.

    called when transducer is started.

    Attributes
    protected
  23. def onStop(): Unit

    called when transputer is stopped.

    called when transputer is stopped.

    Attributes
    protected
  24. def recover(f: PartialFunction[Throwable, Directive]): Transputer.this.type

    set recover function

  25. def recoverAppend(f: PartialFunction[Throwable, Directive]): Transputer.this.type

    append recover function to existing

  26. def replica: Int

    return replica number of current instance, if transponder run replicated.

    return replica number of current instance, if transponder run replicated.

    Attributes
    protected
  27. def start(): Future[Unit]
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. object InPort
  34. object OutPort

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped