クラス 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のロールを取得します。booleanisLeader()このコンテキストが渡されたCandidateがリーダーであるかどうかを確認します。toString()voidyield()このコンテキストがCandidateに渡され、リーダーシップを放棄します。
メソッドの詳細
isLeader
yield
getRole
getLeader
public org.apache.curator.framework.recipes.leader.Participant getLeader()リーダーを取得する- 戻り値:
- リーダー。
- 導入:
- 6.0.3
getParticipants
参加者のリストを取得する- 戻り値:
- 参加者のリスト。
- 導入:
- 6.0.3
toString