Module lettuce.core

Interface KeyStreamingChannel<K>

Type Parameters:
K - Key type.
All Superinterfaces:
StreamingChannel
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 KeyStreamingChannel<K>
extends StreamingChannel
Streaming API for multiple Keys. You can implement this interface in order to receive a call to onKey on every key. Key uniqueness is not guaranteed.
Since:
3.0
Author:
Mark Paluch
  • Method Summary

    Modifier and Type Method Description
    void onKey​(K key)
    Called on every incoming key.
  • Method Details

    • onKey

      void onKey​(K key)
      Called on every incoming key.
      Parameters:
      key - the key