Class

io.chymyst.jc

Reaction

Related Doc: package jc

Permalink

final case class Reaction(info: ReactionInfo, body: ReactionBody, threadPool: Option[Pool], retry: Boolean) extends Product with Serializable

Represents a reaction. This class is immutable.

info

A value of type ReactionInfo describing input and output molecules for this reaction.

body

Partial function of type InputMoleculeList => Any

threadPool

Thread pool on which this reaction will be scheduled. (By default, the common pool is used.)

retry

Whether the reaction should be run again when an exception occurs in its body. Default is false.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Reaction
  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 Reaction(info: ReactionInfo, body: ReactionBody, threadPool: Option[Pool], retry: Boolean)

    Permalink

    info

    A value of type ReactionInfo describing input and output molecules for this reaction.

    body

    Partial function of type InputMoleculeList => Any

    threadPool

    Thread pool on which this reaction will be scheduled. (By default, the common pool is used.)

    retry

    Whether the reaction should be run again when an exception occurs in its body. Default is false.

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  10. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def noRetry: Reaction

    Permalink

    Convenience method to specify the "no retry" option for a reaction.

    Convenience method to specify the "no retry" option for a reaction. (This option is the default.)

    returns

    New reaction value with the "retry" flag unset.

  12. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  14. def onThreads(newThreadPool: Pool): Reaction

    Permalink

    Convenience method to specify thread pools per reaction.

    Convenience method to specify thread pools per reaction.

    Example: go { case a(x) => ... } onThreads threadPool24

    newThreadPool

    A custom thread pool on which this reaction will be scheduled.

    returns

    New reaction value with the thread pool set.

  15. val retry: Boolean

    Permalink

    Whether the reaction should be run again when an exception occurs in its body.

    Whether the reaction should be run again when an exception occurs in its body. Default is false.

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

    Permalink
    Definition Classes
    AnyRef
  17. val threadPool: Option[Pool]

    Permalink

    Thread pool on which this reaction will be scheduled.

    Thread pool on which this reaction will be scheduled. (By default, the common pool is used.)

  18. val toString: String

    Permalink

    Convenience method for debugging.

    Convenience method for debugging.

    returns

    String representation of input molecules of the reaction.

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def withRetry: Reaction

    Permalink

    Convenience method to specify the "retry" option for a reaction.

    Convenience method to specify the "retry" option for a reaction.

    returns

    New reaction value with the "retry" flag set.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped