クラス LeaderInitiator.CuratorContext
java.lang.ObjectSE
org.springframework.integration.zookeeper.leader.LeaderInitiator.CuratorContext
- 実装されたすべてのインターフェース:
Context
- 含まれているクラス:
- LeaderInitiator
キュレーターが支援するリーダーシップコンテキストの実装。
メソッドのサマリー
修飾子と型メソッド説明org.apache.curator.framework.recipes.leader.Participant
リーダーを取得するCollectionSE<org.apache.curator.framework.recipes.leader.Participant>
参加者のリストを取得するgetRole()
Candidate
のロールを取得します。boolean
isLeader()
このコンテキストが渡されたCandidate
がリーダーであるかどうかを確認します。toString()
void
yield()
このコンテキストがCandidate
に渡され、リーダーシップを放棄します。
メソッドの詳細
isLeader
public boolean isLeader()インターフェースからコピーされた説明:Context
このコンテキストが渡されたCandidate
がリーダーであるかどうかを確認します。yield
public void yield()インターフェースからコピーされた説明:Context
このコンテキストがCandidate
に渡され、リーダーシップを放棄します。候補者が現在リーダーでない場合、この方法は効果がありません。getRole
インターフェースからコピーされた説明:Context
Candidate
のロールを取得します。getLeader
public org.apache.curator.framework.recipes.leader.Participant getLeader()リーダーを取得する- 戻り値:
- リーダー。
- 導入:
- 6.0.3
getParticipants
参加者のリストを取得する- 戻り値:
- 参加者のリスト。
- 導入:
- 6.0.3
toString