public interface LeaderEventPublisher
| Modifier and Type | Method and Description |
|---|---|
void |
publishOnFailedToAcquire(java.lang.Object source,
Context context,
java.lang.String role)
Publish a failure to acquire event.
|
void |
publishOnGranted(java.lang.Object source,
Context context,
java.lang.String role)
Publish a granted event.
|
void |
publishOnRevoked(java.lang.Object source,
Context context,
java.lang.String role)
Publish a revoked event.
|
void publishOnGranted(java.lang.Object source,
Context context,
java.lang.String role)
source - the component generated this eventcontext - the context associated with eventrole - the role of the leadervoid publishOnRevoked(java.lang.Object source,
Context context,
java.lang.String role)
source - the component generated this eventcontext - the context associated with eventrole - the role of the leadervoid publishOnFailedToAcquire(java.lang.Object source,
Context context,
java.lang.String role)
source - the component generated this eventcontext - the context associated with eventrole - the role of the leader