@Experimental public class StatefulRedisMultiDbPubSubConnectionImpl<K,V> extends StatefulRedisMultiDbConnectionImpl<StatefulRedisPubSubConnection<K,V>,K,V> implements StatefulRedisMultiDbPubSubConnection<K,V>
async, codec, connectionFactory, connectionStateListeners, current, databases, healthStatusManager, parser, pushListeners, reactive, sync| Constructor and Description |
|---|
StatefulRedisMultiDbPubSubConnectionImpl(Map<RedisURI,RedisDatabase<StatefulRedisPubSubConnection<K,V>>> connections,
ClientResources resources,
RedisCodec<K,V> codec,
Supplier<JsonParser> parser,
io.lettuce.core.failover.DatabaseConnectionFactory<StatefulRedisPubSubConnection<K,V>,K,V> connectionFactory,
HealthStatusManager healthStatusManager) |
addDatabase, addDatabase, addListener, addListener, close, closeAsync, dispatch, dispatch, doByExclusiveLock, doBySharedLock, flushCommands, getCircuitBreaker, getCodec, getCurrentEndpoint, getEndpoints, getOptions, getResources, getTimeout, isHealthy, isMulti, isOpen, removeDatabase, removeListener, removeListener, setAutoFlushCommands, setTimeout, syncHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, isMulti, removeListeneraddListener, close, closeAsync, dispatch, dispatch, flushCommands, getCodec, getOptions, getResources, getTimeout, isOpen, removeListener, setAutoFlushCommands, setTimeoutaddDatabase, addDatabase, getCircuitBreaker, getCurrentEndpoint, getEndpoints, isHealthy, removeDatabasepublic StatefulRedisMultiDbPubSubConnectionImpl(Map<RedisURI,RedisDatabase<StatefulRedisPubSubConnection<K,V>>> connections, ClientResources resources, RedisCodec<K,V> codec, Supplier<JsonParser> parser, io.lettuce.core.failover.DatabaseConnectionFactory<StatefulRedisPubSubConnection<K,V>,K,V> connectionFactory, HealthStatusManager healthStatusManager)
public void addListener(RedisPubSubListener<K,V> listener)
StatefulRedisPubSubConnectionlistener.addListener in interface StatefulRedisPubSubConnection<K,V>listener - the listener, must not be null.public void removeListener(RedisPubSubListener<K,V> listener)
StatefulRedisPubSubConnectionlistener.removeListener in interface StatefulRedisPubSubConnection<K,V>listener - the listener, must not be null.public RedisPubSubAsyncCommands<K,V> async()
StatefulRedisConnectionRedisAsyncCommands API for the current connection. Does not create a new connection.async in interface StatefulRedisConnection<K,V>async in interface StatefulRedisPubSubConnection<K,V>async in class StatefulRedisMultiDbConnectionImpl<StatefulRedisPubSubConnection<K,V>,K,V>protected RedisPubSubAsyncCommandsImpl<K,V> newRedisAsyncCommandsImpl()
StatefulRedisMultiDbConnectionImplRedisAsyncCommandsImpl. Can be overriden to extend.newRedisAsyncCommandsImpl in class StatefulRedisMultiDbConnectionImpl<StatefulRedisPubSubConnection<K,V>,K,V>public RedisPubSubCommands<K,V> sync()
StatefulRedisConnectionRedisCommands API for the current connection. Does not create a new connection.sync in interface StatefulRedisConnection<K,V>sync in interface StatefulRedisPubSubConnection<K,V>sync in class StatefulRedisMultiDbConnectionImpl<StatefulRedisPubSubConnection<K,V>,K,V>protected RedisPubSubCommands<K,V> newRedisSyncCommandsImpl()
StatefulRedisMultiDbConnectionImplRedisCommands. Can be overriden to extend.newRedisSyncCommandsImpl in class StatefulRedisMultiDbConnectionImpl<StatefulRedisPubSubConnection<K,V>,K,V>public RedisPubSubReactiveCommands<K,V> reactive()
StatefulRedisConnectionRedisReactiveCommands API for the current connection. Does not create a new connection.reactive in interface StatefulRedisConnection<K,V>reactive in interface StatefulRedisPubSubConnection<K,V>reactive in class StatefulRedisMultiDbConnectionImpl<StatefulRedisPubSubConnection<K,V>,K,V>protected RedisPubSubReactiveCommandsImpl<K,V> newRedisReactiveCommandsImpl()
StatefulRedisMultiDbConnectionImplRedisReactiveCommandsImpl. Can be overriden to extend.newRedisReactiveCommandsImpl in class StatefulRedisMultiDbConnectionImpl<StatefulRedisPubSubConnection<K,V>,K,V>public void switchToDatabase(RedisURI redisURI)
BaseRedisMultiDbConnectionswitchToDatabase in interface BaseRedisMultiDbConnectionswitchToDatabase in class StatefulRedisMultiDbConnectionImpl<StatefulRedisPubSubConnection<K,V>,K,V>redisURI - the Redis URI of the database to switch to, must not be nullpublic void moveSubscriptions(RedisDatabase<StatefulRedisPubSubConnection<K,V>> fromDb, RedisDatabase<StatefulRedisPubSubConnection<K,V>> toDb)
Copyright © 2025 lettuce.io. All rights reserved.