クラス LeaderInitiator.CuratorContext
java.lang.ObjectSE
org.springframework.integration.zookeeper.leader.LeaderInitiator.CuratorContext
- 実装されたすべてのインターフェース:
Context
- 含まれているクラス:
LeaderInitiator
キュレーターが支援するリーダーシップコンテキストの実装。
- 導入:
- 4.2
- 作成者:
- Patrick Peralta, Janne Valkealahti, Gary Russell, Artem Bilan, Ivan Zaitsev, Christian Tzolov
メソッドのサマリー
修飾子と型メソッド説明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
yield
getRole
getLeader
public org.apache.curator.framework.recipes.leader.Participant getLeader()リーダーを取得する- 戻り値:
- リーダー。
- 導入:
- 6.0.3
getParticipants
参加者のリストを取得する- 戻り値:
- 参加者のリスト。
- 導入:
- 6.0.3
toString