Interface EventCoordinator.Handle
- Enclosing interface:
EventCoordinator
public static interface EventCoordinator.Handle
Represents a handle to a coordination instance, allowing the engine to notify of new events and to terminate the
coordination.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonEventsAppended(List<TaggedEventMessage<?>> events) Invoked by the storage engine when new events have been appended.voidTerminates this coordination instance, releasing any resources or threads used internally.
-
Method Details
-
onEventsAppended
Invoked by the storage engine when new events have been appended.This method may be called concurrently from multiple threads. Implementations should avoid heavy or blocking operations.
- Parameters:
events- the events that were appended; nevernullor empty
-
terminate
void terminate()Terminates this coordination instance, releasing any resources or threads used internally.After termination, the handle should not be used again.
-