- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Context
Interface that defines the context for candidate leadership. Instances of this object are passed to
candidatesupon granting and revoking of leadership.
with no-op implementation for the
- Patrick Peralta, Janne Valkealahti, Artem Bilan, Gary Russell
- true if the
Candidatethis context was passed to is the leader
yielddefault void yield()Causes the
Candidatethis context was passed to to relinquish leadership. This method has no effect if the candidate is not currently the leader.
- the role.