Module lettuce.core

Class StatefulRedisConnectionImpl<K,​V>

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

public class StatefulRedisConnectionImpl<K,​V>
extends RedisChannelHandler<K,​V>
implements StatefulRedisConnection<K,​V>
A thread-safe connection to a Redis server. Multiple threads may share one StatefulRedisConnectionImpl 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