Module lettuce.core

Class StatefulRedisPubSubConnectionImpl<K,​V>

java.lang.Object
io.lettuce.core.RedisChannelHandler<K,​V>
io.lettuce.core.StatefulRedisConnectionImpl<K,​V>
io.lettuce.core.pubsub.StatefulRedisPubSubConnectionImpl<K,​V>
Type Parameters:
K - Key type.
V - Value type.
All Implemented Interfaces:
StatefulConnection<K,​V>, StatefulRedisConnection<K,​V>, AsyncCloseable, ConnectionFacade, StatefulRedisPubSubConnection<K,​V>, Closeable, AutoCloseable

public class StatefulRedisPubSubConnectionImpl<K,​V>
extends StatefulRedisConnectionImpl<K,​V>
implements StatefulRedisPubSubConnection<K,​V>
An thread-safe pub/sub connection to a Redis server. Multiple threads may share one StatefulRedisPubSubConnectionImpl A ConnectionWatchdog monitors each connection and reconnects automatically until RedisChannelHandler.close() is called. All pending commands will be (re)sent after successful reconnection.
Author:
Mark Paluch