
io.lettuce.core.output.KeyValueStreamingChannel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
The newest version!
package io.lettuce.core.output;
/**
* Streaming API for multiple keys and values (tuples). You can implement this interface in order to receive a call to
* {@code onKeyValue} on every key-value.
*
* @param Value type.
* @author Mark Paluch
* @since 5.0
*/
@FunctionalInterface
public interface KeyValueStreamingChannel extends StreamingChannel {
/**
* Called on every incoming key/value pair.
*
* @param key the key
* @param value the value
*/
void onKeyValue(K key, V value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy