クラス RedisServer

java.lang.ObjectSE
org.springframework.data.redis.connection.RedisNode
org.springframework.data.redis.connection.RedisServer
実装されたすべてのインターフェース:
NamedNode

public class RedisServer extends RedisNode
導入:
1.4
作成者:
Christoph Strobl, Thomas Darimont, Franjo Zilic
  • コンストラクターの詳細

    • RedisServer

      public RedisServer(StringSE host, int port)
      指定された hostport を使用して新しい RedisServer を作成します。
      パラメーター:
      host - null であってはなりません
      port -
    • RedisServer

      public RedisServer(StringSE host, int port, PropertiesSE properties)
      指定された hostportproperties で新しい RedisServer を作成します。
      パラメーター:
      host - null であってはなりません
      port -
      properties - null の可能性があります
  • メソッドの詳細

    • newServerFrom

      public static RedisServer newServerFrom(PropertiesSE properties)
      指定されたプロパティから新しい RedisServer を作成します。
      パラメーター:
      properties -
      戻り値:
    • setQuorum

      public void setQuorum(LongSE quorum)
    • getRunId

      public StringSE getRunId()
    • getFlags

      public StringSE getFlags()
    • isMaster

      public boolean isMaster()
      オーバーライド:
      クラス RedisNodeisMaster 
      戻り値:
    • getPendingCommands

      public LongSE getPendingCommands()
    • getLastPingSent

      public LongSE getLastPingSent()
    • getLastOkPingReply

      public LongSE getLastOkPingReply()
    • getDownAfterMilliseconds

      public LongSE getDownAfterMilliseconds()
    • getInfoRefresh

      public LongSE getInfoRefresh()
    • getRoleReported

      public StringSE getRoleReported()
    • roleReportedTime

      public LongSE roleReportedTime()
    • getConfigEpoch

      public LongSE getConfigEpoch()
    • getNumberReplicas

      public LongSE getNumberReplicas()
      接続されているレプリカの数を取得します。
      戻り値:
      導入:
      2.1
    • getNumberOtherSentinels

      public LongSE getNumberOtherSentinels()
    • getQuorum

      public LongSE getQuorum()
    • getFailoverTimeout

      public LongSE getFailoverTimeout()
    • getParallelSyncs

      public LongSE getParallelSyncs()
    • get

      public StringSE get(RedisServer.INFO info)
      パラメーター:
      info - null であってはなりません
      戻り値:
      リクエストされた RedisServer.INFO のエントリが見つからない場合は null。
    • get

      public StringSE get(StringSE key)
      パラメーター:
      key - null または空であってはなりません。
      戻り値:
      リクエストされた key のエントリが見つからない場合は null。