org.eclipse.viatra.cep.core.api.engine

## Class CEPEngine.CEPEngineBuilder

- java.lang.Object
- - org.eclipse.viatra.cep.core.api.engine.CEPEngine.CEPEngineBuilder

- Enclosing class:
    CEPEngine

      public static class CEPEngine.CEPEngineBuilder
      extends java.lang.Object

  Builder class for the `CEPEngine`.

  Use a dedicated `CEPEngine.CEPEngineBuilder` for every `CEPEngine` to be created, or make sure the rules assigned to the builder do not interfere among multiple engines.

  Since:
    0.8

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CEPEngineBuilder()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `CEPEngine.CEPEngineBuilder` | `eventContext(EventContext eventContext)`
    `CEPEngine.CEPEngineBuilder` | `id(java.lang.String engineId)`
    `CEPEngine` | `prepare()`
    `CEPEngine.CEPEngineBuilder` | `rule(java.lang.Class<? extends ICepRule> rule)`
    `CEPEngine.CEPEngineBuilder` | `rules(java.util.List<java.lang.Class<? extends ICepRule>> rules)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CEPEngineBuilder

          public CEPEngineBuilder()

  - ### Method Detail

    - #### id

          public CEPEngine.CEPEngineBuilder id(java.lang.String engineId)

    - #### eventContext

          public CEPEngine.CEPEngineBuilder eventContext(EventContext eventContext)

    - #### rules

          public CEPEngine.CEPEngineBuilder rules(java.util.List<java.lang.Class<? extends ICepRule>> rules)

    - #### rule

          public CEPEngine.CEPEngineBuilder rule(java.lang.Class<? extends ICepRule> rule)

    - #### prepare

          public CEPEngine prepare()