Interface StreamProcessorListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StreamProcessorListener
A listener for the StreamProcessor. Allows retrieving insides of the processing and skipping of records. It can be especially useful for testing purposes. Note that the listener is invoked inside the context of the stream processor and should not block its execution.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onProcessed(TypedRecord<?> processedCommand)
    Is called when a command is processed.
    default void
    onSkipped(LoggedEvent skippedRecord)
    Is called when a record is skipped and not processed.
  • Method Details

    • onProcessed

      void onProcessed(TypedRecord<?> processedCommand)
      Is called when a command is processed.
      Parameters:
      processedCommand - the command that is processed
    • onSkipped

      default void onSkipped(LoggedEvent skippedRecord)
      Is called when a record is skipped and not processed.
      Parameters:
      skippedRecord - the record that is skipped