クラス RedisServer
java.lang.ObjectSE
org.springframework.data.redis.connection.RedisNode
org.springframework.data.redis.connection.RedisServer
- 実装されたすべてのインターフェース:
NamedNode
- 導入:
- 1.4
- 作成者:
- Christoph Strobl, Thomas Darimont, Franjo Zilic
ネストされたクラスのサマリー
ネストされたクラスクラス org.springframework.data.redis.connection.RedisNode から継承されたネストクラス / インターフェース
RedisNode.NodeType, RedisNode.RedisNodeBuilder
フィールドのサマリー
クラス org.springframework.data.redis.connection.RedisNode から継承されたフィールド
DEFAULT_PORT, DEFAULT_SENTINEL_PORT
コンストラクターの概要
コンストラクターコンストラクター説明RedisServer
(StringSE host, int port) RedisServer
(StringSE host, int port, PropertiesSE properties) メソッドのサマリー
修飾子と型メソッド説明get
(RedisServer.INFO info) getFlags()
接続されているレプリカの数を取得します。getRunId()
boolean
isMaster()
static RedisServer
newServerFrom
(PropertiesSE properties) 指定されたプロパティから新しいRedisServer
を作成します。void
クラス org.springframework.data.redis.connection.RedisNode から継承されたメソッド
asString, equals, fromString, fromString, getHost, getId, getMasterId, getName, getPort, getType, hashCode, hasValidHost, isReplica, newRedisNode, setId, setName, toString
コンストラクターの詳細
RedisServer
- パラメーター:
host
- null であってはなりませんport
-
RedisServer
- パラメーター:
host
- null であってはなりませんport
-properties
- null の可能性があります
メソッドの詳細
newServerFrom
指定されたプロパティから新しいRedisServer
を作成します。- パラメーター:
properties
-- 戻り値:
setQuorum
getRunId
getFlags
isMaster
public boolean isMaster()getPendingCommands
getLastPingSent
getLastOkPingReply
getDownAfterMilliseconds
getInfoRefresh
getRoleReported
roleReportedTime
getConfigEpoch
getNumberReplicas
接続されているレプリカの数を取得します。- 戻り値:
- 導入:
- 2.1
getNumberOtherSentinels
getQuorum
getFailoverTimeout
getParallelSyncs
get
- パラメーター:
info
- null であってはなりません- 戻り値:
- リクエストされた
RedisServer.INFO
のエントリが見つからない場合は null。
get
- パラメーター:
key
- null または空であってはなりません。- 戻り値:
- リクエストされた
key
のエントリが見つからない場合は null。