Interface LeaderEventPublisher
- All Known Implementing Classes:
DefaultLeaderEventPublisher
public interface LeaderEventPublisher
Interface for publishing leader based application events.
- Author:
- Janne Valkealahti, Gary Russell, Glenn Renfro
-
Method Summary
Modifier and TypeMethodDescriptionvoid
publishOnFailedToAcquire
(Object source, Context context, String role) Publish a failure to acquire event.void
publishOnGranted
(Object source, Context context, String role) Publish a granted event.void
publishOnRevoked
(Object source, Context context, String role) Publish a revoked event.
-
Method Details
-
publishOnGranted
Publish a granted event.- Parameters:
source
- the component generated this eventcontext
- the context associated with eventrole
- the role of the leader
-
publishOnRevoked
Publish a revoked event.- Parameters:
source
- the component generated this eventcontext
- the context associated with eventrole
- the role of the leader
-
publishOnFailedToAcquire
Publish a failure to acquire event.- Parameters:
source
- the component generated this eventcontext
- the context associated with eventrole
- the role of the leader- Since:
- 5.0
-