Interface StreamListener<K,V extends Record<K,?>>

Type Parameters:
K - Stream key and Stream field type.
V - Stream value type.
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 StreamListener<K,V extends Record<K,?>>
Listener interface to receive delivery of messages.
Since:
2.2
Author:
Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMessage(V message)
    Callback invoked on receiving a Record.
  • Method Details

    • onMessage

      void onMessage(V message)
      Callback invoked on receiving a Record.
      Parameters:
      message - never null.