クラス 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, @Nullable PropertiesSE properties)
      指定された hostportproperties で新しい RedisServer を作成します。
      パラメーター:
      host - null であってはなりません
      port -
      properties - null の可能性があります
  • メソッドの詳細

    • newServerFrom

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

      public void setQuorum(@Nullable LongSE quorum)
    • getRunId

      public @Nullable StringSE getRunId()
    • getFlags

      public @Nullable StringSE getFlags()
    • isMaster

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

      public @Nullable LongSE getPendingCommands()
    • getLastPingSent

      public @Nullable LongSE getLastPingSent()
    • getLastOkPingReply

      public @Nullable LongSE getLastOkPingReply()
    • getDownAfterMilliseconds

      public @Nullable LongSE getDownAfterMilliseconds()
    • getInfoRefresh

      public @Nullable LongSE getInfoRefresh()
    • getRoleReported

      public @Nullable StringSE getRoleReported()
    • roleReportedTime

      public @Nullable LongSE roleReportedTime()
    • getConfigEpoch

      public @Nullable LongSE getConfigEpoch()
    • getNumberReplicas

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

      public @Nullable LongSE getNumberOtherSentinels()
    • getQuorum

      public @Nullable LongSE getQuorum()
    • getFailoverTimeout

      public @Nullable LongSE getFailoverTimeout()
    • getParallelSyncs

      public @Nullable LongSE getParallelSyncs()
    • get

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

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