Class

rescala.extra.reactor.ReactorBundle

Stage

Related Doc: package ReactorBundle

Permalink

case class Stage[T](actions: List[ReactorAction[T]] = Nil) extends Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Stage
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Stage(actions: List[ReactorAction[T]] = Nil)

    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. val actions: List[ReactorAction[T]]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  11. def loop(body: ⇒ Stage[T]): Stage[T]

    Permalink

    Executes the body in a loop.

    Executes the body in a loop.

    body

    The Stage to be executes repeatedly

  12. def modify(modifier: (T) ⇒ T): Stage[T]

    Permalink

    Modifies the value of the Reactor.

    Modifies the value of the Reactor.

    modifier

    A function that has the old Reactor value as input and returns a new Reactor value.

    returns

    A StageBuilder describing the Reactor behaviour.

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

    Permalink
    Definition Classes
    AnyRef
  14. def next(event: Api.Event[Unit])(body: ⇒ Stage[T]): Stage[T]

    Permalink

    Waits until the event is triggered.

    Waits until the event is triggered.

    When the event is triggered the given body is executed in the same transaction.

    event

    the event to wait for.

    body

    the code to execute when the event is triggered.

  15. def next[E](event: Api.Event[E])(body: (E) ⇒ Stage[T]): Stage[T]

    Permalink

    Waits until the event is triggered.

    Waits until the event is triggered.

    When the event is triggered the given body is executed in the same transaction.

    E

    the event's type.

    event

    the event to wait for.

    body

    the code to execute when the event is triggered.

  16. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  18. def read(body: (T) ⇒ Stage[T]): Stage[T]

    Permalink

    Reads the current reactor value.

    Reads the current reactor value.

    Executes the body with the current reactor value and expects another Stage as result.

    A usage example could be returning different Stages depending on the event value.

    body

    The function building the resulting Stage

  19. def set(newValue: T): Stage[T]

    Permalink

    Sets the value of the Reactor.

    Sets the value of the Reactor.

    newValue

    The new value of the Reactor.

    returns

    A StageBuilder describing the Reactor behaviour.

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

    Permalink
    Definition Classes
    AnyRef
  21. def until(event: Api.Event[Any], body: ⇒ Stage[T]): Stage[T]

    Permalink

    Executes it's body until an event is fired.

    Executes it's body until an event is fired.

    Until executes the body until the given event is fired.

    event

    The event indicating the interrupt.

    body

    The Stage to be executes by default.

  22. def until(event: Api.Event[Unit], body: ⇒ Stage[T], interruptHandler: Stage[T]): Stage[T]

    Permalink

    Executes it's body until an event is fired.

    Executes it's body until an event is fired.

    Until executes the body until the given event is fired. When the event is fired, until executes the interruptHandler.

    event

    The event indicating the interrupt.

    body

    The Stage to be executes by default.

    interruptHandler

    A function taking the interrupt event's value and returning a Stage. It is executed when the interrupt is fired.

  23. def until[E](event: Api.Event[E], body: ⇒ Stage[T], interruptHandler: (E) ⇒ Stage[T]): Stage[T]

    Permalink

    Executes it's body until an event is fired.

    Executes it's body until an event is fired.

    Until executes the body until the given event is fired. When the event is fired, until executes the interruptHandler.

    E

    The type of the event value.

    event

    The event indicating the interrupt.

    body

    The Stage to be executes by default.

    interruptHandler

    A function taking the interrupt event's value and returning a Stage. It is executed when the interrupt is fired.

  24. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped