Package io.camunda.zeebe.engine.state
Interface EventApplier
- All Known Implementing Classes:
EventAppliers
public interface EventApplier
Applies the state changes for a specific event.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyState(long key, Intent intent, RecordValue recordValue, int recordVersion) Apply the state changes of the given event.intgetLatestVersion(Intent intent) Returns the latest EventApplier version of a given Intent.
-
Method Details
-
getLatestVersion
Returns the latest EventApplier version of a given Intent.- Parameters:
intent- the Intent of the EventApplier- Returns:
- the latest version of the given intent, -1 if no EventApplier is found
-
applyState
Apply the state changes of the given event. It will use the event applier that matches the specified version.- Parameters:
key- the key of the eventintent- the intent of the eventrecordValue- the value of the eventrecordVersion- the record version of the event
-