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.
- Alphabetic
- By Inheritance
- Transputer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(p: Transputer): ParTransputer
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def copyPorts(prev: Transputer): Unit
copy conection from previous instance when transputer is restarted.
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def logSource: LogSource[Transputer]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def onEscalatedFailure(ex: Throwable): Unit
called when failure is escalated.
called when failure is escalated.
- Attributes
- protected
- 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
- def onResume(): Unit
called when transducer is choose to resume durign recovery.
called when transducer is choose to resume durign recovery.
- Attributes
- protected
- def onStart(): Unit
called when transducer is started.
called when transducer is started.
- Attributes
- protected
- def onStop(): Unit
called when transputer is stopped.
called when transputer is stopped.
- Attributes
- protected
- def recover(f: PartialFunction[Throwable, Directive]): Transputer.this.type
set recover function
- def recoverAppend(f: PartialFunction[Throwable, Directive]): Transputer.this.type
append recover function to existing
- 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
- def start(): Future[Unit]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object InPort
- object OutPort