public interface RedisConfiguration
RedisConfiguration provides means to identify
configurations for the individual purposes.| Modifier and Type | Interface and Description |
|---|---|
static interface |
RedisConfiguration.ClusterConfiguration
Configuration interface suitable for Redis cluster environments.
|
static interface |
RedisConfiguration.DomainSocketConfiguration
Configuration interface suitable for single node redis connections using local unix domain socket.
|
static interface |
RedisConfiguration.SentinelConfiguration
Configuration interface suitable for Redis Sentinel environments.
|
static interface |
RedisConfiguration.StaticMasterReplicaConfiguration
Configuration interface suitable for Redis master/slave environments with fixed hosts.
|
static interface |
RedisConfiguration.WithAuthentication
RedisConfiguration part suitable for configurations that may use authentication when connecting. |
static interface |
RedisConfiguration.WithDatabaseIndex
RedisConfiguration part suitable for configurations that use a specific database. |
static interface |
RedisConfiguration.WithDomainSocket
RedisConfiguration part suitable for configurations that use native domain sockets for connecting. |
static interface |
RedisConfiguration.WithHostAndPort
RedisConfiguration part suitable for configurations that use host/port combinations for connecting. |
static interface |
RedisConfiguration.WithPassword
RedisConfiguration part suitable for configurations that may use authentication when connecting. |
default Integer getDatabaseOrElse(Supplier<Integer> other)
RedisConfiguration is
database aware or evaluate and return the value of the given
Supplier.other - a Supplier whose result is returned if given RedisConfiguration is not
database aware.IllegalArgumentException - if other is null.default RedisPassword getPasswordOrElse(Supplier<RedisPassword> other)
RedisPassword if the current RedisConfiguration is
password aware or evaluate and return the value of the given
Supplier.other - a Supplier whose result is returned if given RedisConfiguration is not
password aware.IllegalArgumentException - if other is null.static boolean isAuthenticationAware(@Nullable RedisConfiguration configuration)
configuration - can be null.true if given RedisConfiguration is instance of RedisConfiguration.WithPassword.static boolean isDatabaseIndexAware(@Nullable RedisConfiguration configuration)
configuration - can be null.true if given RedisConfiguration is instance of RedisConfiguration.WithDatabaseIndex.static boolean isSentinelConfiguration(@Nullable RedisConfiguration configuration)
configuration - can be null.true if given RedisConfiguration is instance of RedisConfiguration.SentinelConfiguration.static boolean isHostAndPortAware(@Nullable RedisConfiguration configuration)
configuration - can be null.true if given RedisConfiguration is instance of RedisConfiguration.WithHostAndPort.static boolean isClusterConfiguration(@Nullable RedisConfiguration configuration)
configuration - can be null.true if given RedisConfiguration is instance of RedisConfiguration.ClusterConfiguration.static boolean isStaticMasterReplicaConfiguration(@Nullable RedisConfiguration configuration)
configuration - can be null.true if given RedisConfiguration is instance of RedisConfiguration.StaticMasterReplicaConfiguration.static boolean isDomainSocketConfiguration(@Nullable RedisConfiguration configuration)
configuration - can be null.true if given RedisConfiguration is instance of RedisConfiguration.DomainSocketConfiguration.static Integer getDatabaseOrElse(@Nullable RedisConfiguration configuration, Supplier<Integer> other)
configuration - can be null.other - a Supplier whose result is returned if given RedisConfiguration is not
database aware.IllegalArgumentException - if other is null.@Nullable static String getUsernameOrElse(@Nullable RedisConfiguration configuration, Supplier<String> other)
configuration - can be null.other - a Supplier whose result is returned if given RedisConfiguration is not
password aware.IllegalArgumentException - if other is null.static RedisPassword getPasswordOrElse(@Nullable RedisConfiguration configuration, Supplier<RedisPassword> other)
configuration - can be null.other - a Supplier whose result is returned if given RedisConfiguration is not
password aware.IllegalArgumentException - if other is null.static int getPortOrElse(@Nullable RedisConfiguration configuration, IntSupplier other)
configuration - can be null.other - a Supplier whose result is returned if given RedisConfiguration is not
port aware.IllegalArgumentException - if other is null.static String getHostOrElse(@Nullable RedisConfiguration configuration, Supplier<String> other)
configuration - can be null.other - a Supplier whose result is returned if given RedisConfiguration is not
host aware.IllegalArgumentException - if other is null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.