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. def allProcessMetadata: Set[ProcessMetadata]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. 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.

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

  9. def clone(): AnyRef

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

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

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

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

    Permalink

    Synchronously returns all events that occurred for a process.

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

  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. 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.

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

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

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

    Permalink
  21. 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

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

  23. def hashCode(): Int

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

    Permalink
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. implicit val materializer: ActorMaterializer

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

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

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

    Permalink
    Definition Classes
    AnyRef
  30. val recipe: Recipe

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

    Permalink

    Attempts to gracefully shutdown the baker system.

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

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

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

    Permalink
  35. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped