クラス LeaderInitiator.CuratorContext

java.lang.ObjectSE
org.springframework.integration.zookeeper.leader.LeaderInitiator.CuratorContext
実装されたすべてのインターフェース:
Context
含まれているクラス:
LeaderInitiator

public class LeaderInitiator.CuratorContext extends ObjectSE implements Context
キュレーターが支援するリーダーシップコンテキストの実装。
導入:
4.2
作成者:
Patrick Peralta, Janne Valkealahti, Gary Russell, Artem Bilan, Ivan Zaitsev, Christian Tzolov
  • メソッドの詳細

    • isLeader

      public boolean isLeader()
      インターフェースからコピーされた説明: Context
      このコンテキストが渡された Candidate がリーダーであるかどうかを確認します。
      次で指定:
      インターフェース ContextisLeader 
      戻り値:
      このコンテキストが渡された Candidate がリーダーである場合は true
    • yield

      public void yield()
      インターフェースからコピーされた説明: Context
      このコンテキストが Candidate に渡され、リーダーシップを放棄します。候補者が現在リーダーでない場合、この方法は効果がありません。
      次で指定:
      インターフェース Contextyield 
    • getRole

      public StringSE getRole()
      インターフェースからコピーされた説明: Context
      Candidate のロールを取得します。
      次で指定:
      インターフェース ContextgetRole 
      戻り値:
      ロール。
    • getLeader

      public org.apache.curator.framework.recipes.leader.Participant getLeader()
      リーダーを取得する
      戻り値:
      リーダー。
      導入:
      6.0.3
    • getParticipants

      public CollectionSE<org.apache.curator.framework.recipes.leader.Participant> getParticipants()
      参加者のリストを取得する
      戻り値:
      参加者のリスト。
      導入:
      6.0.3
    • toString

      public StringSE toString()
      オーバーライド:
      クラス ObjectSEtoString