Interface StatefulRediSearchSentinelConnection<K,​V>

  • Type Parameters:
    K - Key type.
    V - Value type.
    All Superinterfaces:
    io.lettuce.core.internal.AsyncCloseable, java.lang.AutoCloseable, io.lettuce.core.api.StatefulConnection<K,​V>, io.lettuce.core.sentinel.api.StatefulRedisSentinelConnection<K,​V>
    All Known Implementing Classes:
    StatefulRediSearchSentinelConnectionImpl

    public interface StatefulRediSearchSentinelConnection<K,​V>
    extends io.lettuce.core.sentinel.api.StatefulRedisSentinelConnection<K,​V>
    A thread-safe connection to a redis server. Multiple threads may share one StatefulRediSearchSentinelConnection. A ConnectionWatchdog monitors each connection and reconnects automatically until StatefulConnection.close() is called. All pending commands will be (re)sent after successful reconnection.
    Author:
    Julien Ruaux
    • Method Detail

      • sync

        RediSearchSentinelCommands<K,​V> sync()
        Returns the RediSearchSentinelCommands API for the current connection. Does not create a new connection.
        Specified by:
        sync in interface io.lettuce.core.sentinel.api.StatefulRedisSentinelConnection<K,​V>
        Returns:
        the synchronous API for the underlying connection.
      • async

        RediSearchSentinelAsyncCommands<K,​V> async()
        Returns the RediSearchSentinelAsyncCommands API for the current connection. Does not create a new connection.
        Specified by:
        async in interface io.lettuce.core.sentinel.api.StatefulRedisSentinelConnection<K,​V>
        Returns:
        the asynchronous API for the underlying connection.