Interface LettuceRedisClientConfiguration


public interface LettuceRedisClientConfiguration

Lettuce Redis client module configuration.

Since:
1.4
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    The Redis client name.
    default int
    The database index.
    default int
    The number of reactor threads to allocate to the Redis client event loop group.
    default String
    Redis datastore host.
    Redis datastore password.
    default int
    Maximum active connection in the Redis client connection pool.
    default int
    Maximum idle connection in the Redis client connection pool.
    default int
    Minimum idle connection in the Redis client connection pool.
    default int
    Redis datastore port.
    default long
    Redis connection timeout in milliseconds.
    default boolean
    tls()
    Indicates whether connection is secured.
    uri()
    The Redis datastore URI.
    Redis datastore user name.
  • Method Details

    • event_loop_group_size

      default int event_loop_group_size()

      The number of reactor threads to allocate to the Redis client event loop group.

      Defaults to number of processors available to the JVM.

      Returns:
      the number of threads to allocate
    • uri

      String uri()

      The Redis datastore URI.

      Returns:
      a Redis datastore URI
    • username

      String username()

      Redis datastore user name.

      Returns:
      a user name
    • password

      String password()

      Redis datastore password.

      Returns:
      a password
    • host

      default String host()

      Redis datastore host.

      Defaults to localhost.

      Returns:
      a host
    • port

      default int port()

      Redis datastore port.

      Defaults to 6379.

      Returns:
      a host
    • tls

      default boolean tls()

      Indicates whether connection is secured.

      Defaults to false.

      Returns:
      true to activate TLS, false otherwise
    • database

      default int database()

      The database index.

      Defaults to 0.

      Returns:
      a database index
    • client_name

      String client_name()

      The Redis client name.

      Returns:
      a client name
    • timeout

      default long timeout()

      Redis connection timeout in milliseconds.

      Defaults to 60000.

      Returns:
      the connection timeout
    • pool_max_active

      default int pool_max_active()

      Maximum active connection in the Redis client connection pool.

      Defaults to 8.

      Returns:
      the maximum active connection in the pool
    • pool_min_idle

      default int pool_min_idle()

      Minimum idle connection in the Redis client connection pool.

      Defaults to 0.

      Returns:
      the minimum idle connection in the pool
    • pool_max_idle

      default int pool_max_idle()

      Maximum idle connection in the Redis client connection pool.

      Defaults to 8.

      Returns:
      the maximum idle connection in the pool