インターフェース RedisConfiguration
- すべての既知の実装クラス:
RedisClusterConfiguration
、RedisSentinelConfiguration
、RedisSocketConfiguration
、RedisStandaloneConfiguration
、RedisStaticMasterReplicaConfiguration
public interface RedisConfiguration
Redis 接続セットアップに関連する構成クラスのマーカーインターフェース。セットアップシナリオはそれらを統合するのに苦労するのではなく非常に多様であるため、
RedisConfiguration
は個々の目的のために構成を識別する手段を提供します。- 導入:
- 2.1
- 作成者:
- Christoph Strobl, Luis De Bello, Vikas Garg
ネストされたクラスのサマリー
ネストされたクラス修飾子と型インターフェース説明static interface
Redis クラスター環境に適した構成インターフェース。static interface
ローカル UNIX ドメインソケットを使用したシングルノード redis 接続に適した構成インターフェース。static interface
Redis Sentinel 環境に適した構成インターフェース。static interface
固定ホストの Redis マスター / レプリカ環境に適した構成インターフェース。static interface
接続時に認証を使用する可能性のある構成に適したRedisConfiguration
パーツ。static interface
特定のデータベースを使用する構成に適したRedisConfiguration
パーツ。static interface
接続にネイティブドメインソケットを使用する構成に適したRedisConfiguration
パーツ。static interface
RedisConfiguration
パーツは、接続にホスト / ポートの組み合わせを使用する構成に適しています。static interface
接続時に認証を使用する可能性のある構成に適したRedisConfiguration
パーツ。メソッドのサマリー
修飾子と型メソッド説明default IntegerSE
getDatabaseOrElse
(SupplierSE<IntegerSE> other) static IntegerSE
getDatabaseOrElse
(RedisConfiguration configuration, SupplierSE<IntegerSE> other) static StringSE
getHostOrElse
(RedisConfiguration configuration, SupplierSE<StringSE> other) default RedisPassword
getPasswordOrElse
(SupplierSE<RedisPassword> other) 現在のRedisConfiguration
がpassword aware
の場合は、構成済みのRedisPassword
を取得するか、指定されたSupplier
SE の値を評価して返します。static RedisPassword
getPasswordOrElse
(RedisConfiguration configuration, SupplierSE<RedisPassword> other) static int
getPortOrElse
(RedisConfiguration configuration, IntSupplierSE other) static StringSE
getUsernameOrElse
(RedisConfiguration configuration, SupplierSE<StringSE> other) static boolean
isAuthenticationAware
(RedisConfiguration configuration) static boolean
isClusterConfiguration
(RedisConfiguration configuration) static boolean
isDatabaseIndexAware
(RedisConfiguration configuration) static boolean
isDomainSocketConfiguration
(RedisConfiguration configuration) static boolean
isHostAndPortAware
(RedisConfiguration configuration) static boolean
isSentinelConfiguration
(RedisConfiguration configuration) static boolean
isStaticMasterReplicaConfiguration
(RedisConfiguration configuration)
メソッドの詳細
getDatabaseOrElse
- パラメーター:
other
-RedisConfiguration
が指定された場合に結果が返されるSupplier
はdatabase aware
ではありません。- 戻り値:
- 決して null にはなりません。
- 例外:
IllegalArgumentExceptionSE
-other
が null の場合。
getPasswordOrElse
現在のRedisConfiguration
がpassword aware
の場合は、構成済みのRedisPassword
を取得するか、指定されたSupplier
SE の値を評価して返します。- パラメーター:
other
-RedisConfiguration
が指定された場合に結果が返されるSupplier
はpassword aware
ではありません。- 戻り値:
- 決して null にはなりません。
- 例外:
IllegalArgumentExceptionSE
-other
が null の場合。
isAuthenticationAware
- パラメーター:
configuration
- null でもかまいません。- 戻り値:
-
RedisConfiguration
が指定されている場合、true
はRedisConfiguration.WithPassword
のインスタンスです。
isDatabaseIndexAware
- パラメーター:
configuration
- null でもかまいません。- 戻り値:
-
RedisConfiguration
が指定されている場合、true
はRedisConfiguration.WithDatabaseIndex
のインスタンスです。
isSentinelConfiguration
- パラメーター:
configuration
- null でもかまいません。- 戻り値:
-
RedisConfiguration
が指定されている場合、true
はRedisConfiguration.SentinelConfiguration
のインスタンスです。
isHostAndPortAware
- パラメーター:
configuration
- null でもかまいません。- 戻り値:
-
RedisConfiguration
が指定されている場合、true
はRedisConfiguration.WithHostAndPort
のインスタンスです。 - 導入:
- 2.1.6
isClusterConfiguration
- パラメーター:
configuration
- null でもかまいません。- 戻り値:
-
RedisConfiguration
が指定されている場合、true
はRedisConfiguration.ClusterConfiguration
のインスタンスです。
isStaticMasterReplicaConfiguration
- パラメーター:
configuration
- null でもかまいません。- 戻り値:
-
RedisConfiguration
が指定されている場合、true
はRedisConfiguration.StaticMasterReplicaConfiguration
のインスタンスです。
isDomainSocketConfiguration
- パラメーター:
configuration
- null でもかまいません。- 戻り値:
-
RedisConfiguration
が指定されている場合、true
はRedisConfiguration.DomainSocketConfiguration
のインスタンスです。
getDatabaseOrElse
static IntegerSE getDatabaseOrElse(@Nullable RedisConfiguration configuration, SupplierSE<IntegerSE> other) - パラメーター:
configuration
- null でもかまいません。other
-RedisConfiguration
が指定された場合に結果が返されるSupplier
はdatabase aware
ではありません。- 戻り値:
- 決して null にはなりません。
- 例外:
IllegalArgumentExceptionSE
-other
が null の場合。
getUsernameOrElse
@Nullable static StringSE getUsernameOrElse(@Nullable RedisConfiguration configuration, SupplierSE<StringSE> other) - パラメーター:
configuration
- null でもかまいません。other
-RedisConfiguration
が指定された場合に結果が返されるSupplier
はpassword aware
ではありません。- 戻り値:
- null でもかまいません。
- 例外:
IllegalArgumentExceptionSE
-other
が null の場合。
getPasswordOrElse
static RedisPassword getPasswordOrElse(@Nullable RedisConfiguration configuration, SupplierSE<RedisPassword> other) - パラメーター:
configuration
- null でもかまいません。other
-RedisConfiguration
が指定された場合に結果が返されるSupplier
はpassword aware
ではありません。- 戻り値:
- 決して null にはなりません。
- 例外:
IllegalArgumentExceptionSE
-other
が null の場合。
getPortOrElse
- パラメーター:
configuration
- null でもかまいません。other
-RedisConfiguration
が指定された場合に結果が返されるSupplier
はport aware
ではありません。- 戻り値:
- 決して null にはなりません。
- 例外:
IllegalArgumentExceptionSE
-other
が null の場合。- 導入:
- 2.1.6
getHostOrElse
static StringSE getHostOrElse(@Nullable RedisConfiguration configuration, SupplierSE<StringSE> other) - パラメーター:
configuration
- null でもかまいません。other
-RedisConfiguration
が指定された場合に結果が返されるSupplier
はhost aware
ではありません。- 戻り値:
- 決して null にはなりません。
- 例外:
IllegalArgumentExceptionSE
-other
が null の場合。- 導入:
- 2.1.6