Class EventAppliers

java.lang.Object
io.camunda.zeebe.engine.state.appliers.EventAppliers
All Implemented Interfaces:
EventApplier

public final class EventAppliers extends Object implements EventApplier
Applies state changes from events to the MutableProcessingState.

Finds the correct TypedEventApplier and delegates.

  • Field Details

  • Constructor Details

    • EventAppliers

      public EventAppliers()
  • Method Details

    • registerEventAppliers

      public EventAppliers registerEventAppliers(MutableProcessingState state)
    • getLatestVersion

      public int getLatestVersion(Intent intent)
      Description copied from interface: EventApplier
      Returns the latest EventApplier version of a given Intent.
      Specified by:
      getLatestVersion in interface EventApplier
      Parameters:
      intent - the Intent of the EventApplier
      Returns:
      the latest version of the given intent, -1 if no EventApplier is found
    • applyState

      public void applyState(long key, Intent intent, RecordValue value, int recordVersion)
      Description copied from interface: EventApplier
      Apply the state changes of the given event. It will use the event applier that matches the specified version.
      Specified by:
      applyState in interface EventApplier
      Parameters:
      key - the key of the event
      intent - the intent of the event
      value - the value of the event
      recordVersion - the record version of the event