クラス 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()booleanisMaster()static RedisServernewServerFrom(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。