Class OnGrantedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.integration.leader.event.AbstractLeaderEvent
org.springframework.integration.leader.event.OnGrantedEvent
All Implemented Interfaces:
java.io.Serializable

public class OnGrantedEvent
extends AbstractLeaderEvent
Generic event representing that leader has been granted.
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors 
    Constructor Description
    OnGrantedEvent​(java.lang.Object source, Context context, java.lang.String role)
    Instantiates a new granted event.
  • Method Summary

    Methods inherited from class org.springframework.integration.leader.event.AbstractLeaderEvent

    getContext, getRole, toString

    Methods inherited from class org.springframework.context.ApplicationEvent

    getTimestamp

    Methods inherited from class java.util.EventObject

    getSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OnGrantedEvent

      public OnGrantedEvent​(java.lang.Object source, Context context, java.lang.String role)
      Instantiates a new granted event.
      Parameters:
      source - the component that published the event (never null)
      context - the context associated with this event
      role - the role of the leader