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 Details

    • publishOnGranted

      void publishOnGranted(Object source, Context context, String role)
      Publish a granted event.
      Parameters:
      source - the component generated this event
      context - the context associated with event
      role - the role of the leader
    • publishOnRevoked

      void publishOnRevoked(Object source, Context context, String role)
      Publish a revoked event.
      Parameters:
      source - the component generated this event
      context - the context associated with event
      role - the role of the leader
    • publishOnFailedToAcquire

      void publishOnFailedToAcquire(Object source, Context context, String role)
      Publish a failure to acquire event.
      Parameters:
      source - the component generated this event
      context - the context associated with event
      role - the role of the leader
      Since:
      5.0