Class LeaderInitiator.HazelcastContext
java.lang.Object
org.springframework.integration.hazelcast.leader.LeaderInitiator.HazelcastContext
- All Implemented Interfaces:
Context
- Enclosing class:
- LeaderInitiator
Implementation of leadership context backed by Hazelcast.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HazelcastContext
protected HazelcastContext()
-
-
Method Details
-
isLeader
public boolean isLeader()Description copied from interface:Context
Checks if theCandidate
this context was passed to is the leader. -
yield
public void yield()Description copied from interface:Context
Causes theCandidate
this context was passed to to relinquish leadership. This method has no effect if the candidate is not currently the leader. -
getRole
Description copied from interface:Context
Get the role for theCandidate
. -
toString
-