Module lettuce.core

Interface StatefulRedisPubSubConnection<K,​V>

Type Parameters:
K - Key type.
V - Value type.
All Superinterfaces:
AsyncCloseable, AutoCloseable, StatefulConnection<K,​V>, StatefulRedisConnection<K,​V>
All Known Subinterfaces:
StatefulRedisClusterPubSubConnection<K,​V>
All Known Implementing Classes:
StatefulRedisPubSubConnectionImpl

public interface StatefulRedisPubSubConnection<K,​V>
extends StatefulRedisConnection<K,​V>
An asynchronous thread-safe pub/sub connection to a redis server. After one or more channels are subscribed to only pub/sub related commands or QUIT may be called. Incoming messages and results of the subscribe/unsubscribe calls will be passed to all registered RedisPubSubListeners. A ConnectionWatchdog monitors each connection and reconnects automatically until StatefulConnection.close() is called. Channel and pattern subscriptions are renewed after reconnecting.
Since:
4.0
Author:
Mark Paluch