onEvent abstract method

void onEvent(
  1. String? correlationId,
  2. IEvent event,
  3. Parameters args
)

A method called when events this listener is subscrubed to are fired.

  • event a fired evemt
  • correlationId (optional) transaction id to trace execution through call chain.
  • args event arguments.

Implementation

void onEvent(String? correlationId, IEvent event, Parameters args);