Class

com.ing.baker.core

Baker

Related Doc: package core

Permalink

class Baker extends AnyRef

The Baker knows: - A recipe - The ingredientImpls (what concrete implementation for what interface): Map[Interface, Implementation] - A list of events The Baker can bake a recipe, create a process and respond to events.

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

Instance Constructors

  1. new Baker(recipe: Recipe, implementations: Map[Class[_], () ⇒ AnyRef], validationSettings: ValidationSettings = ..., actorSystem: ActorSystem)

    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. implicit val actorSystem: ActorSystem

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bake(processId: UUID): ProcessState

    Permalink

    Creates an instance of the process using the recipe.

    Creates an instance of the process using the recipe.

    processId

    A unique process id.

  7. def bakeAsync(processId: UUID): Future[ProcessState]

    Permalink

    Asynchronously creates an instance of the process using the recipe.

    Asynchronously creates an instance of the process using the recipe.

    processId

    A unique process id.

    returns

    A future of the initial process state.

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val compiledRecipe: CompiledRecipe

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def events(processId: UUID)(implicit timeout: FiniteDuration): Seq[Any]

    Permalink

    Synchronously returns all events that occurred for a process.

  13. def eventsAsync(processId: UUID): Source[Any, NotUsed]

    Permalink

    Returns a Source of baker events for a process.

    Returns a Source of baker events for a process.

    processId

    The process identifier.

    returns

    The source of events.

  14. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getIngredients(processId: UUID)(implicit timeout: FiniteDuration): Map[String, Any]

    Permalink

    Get all state that is or was available in the Petri Net marking.

    Get all state that is or was available in the Petri Net marking.

    processId

    The process id of the active process for which the accumulated state needs to be retrieved.

    returns

    Accumulated state.

  17. def getProcessState(processId: UUID)(implicit timeout: FiniteDuration): ProcessState

    Permalink

    Returns the process state.

    Returns the process state.

    Throws a NoSuchProcessException when the process with the given identifier does not exist.

    processId

    The process identifier.

    returns

    The process state.

  18. def getProcessStateAsync(processId: UUID)(implicit timeout: FiniteDuration): Future[ProcessState]

    Permalink

    Get all state that is or was available in the Petri Net marking.

    Get all state that is or was available in the Petri Net marking.

    processId

    The process id of the active process for which the accumulated state needs to be retrieved.

    returns

    Accumulated state.

  19. def getVisualState(processId: UUID)(implicit timeout: FiniteDuration): String

    Permalink
  20. def handleEvent(processId: UUID, event: AnyRef)(implicit timeout: FiniteDuration): Unit

    Permalink

    Notifies Baker that an event has happened and waits until all the actions which depend on this event are executed.

    Notifies Baker that an event has happened and waits until all the actions which depend on this event are executed.

    processId

    The process id

    event

    The event instance

  21. def handleEventAsync(processId: UUID, event: AnyRef): BakerResponse

    Permalink

    Fires an event to baker for a process.

    Fires an event to baker for a process. This is fire and forget in the sense that if nothing is done with the response you have NO guarantee that the event is received by baker.

  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. val implementations: Map[Class[_], () ⇒ AnyRef]

    Permalink
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. implicit val materializer: ActorMaterializer

    Permalink
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  29. val recipe: Recipe

    Permalink
  30. def shutdown(timeout: FiniteDuration = 30 seconds): Unit

    Permalink

    Attempts to gracefully shutdown the baker system.

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

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. val validationSettings: ValidationSettings

    Permalink
  34. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped