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:
Serializable
Generic event representing that leader has been granted.
- Author:
- Janne Valkealahti, Gary Russell
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionOnGrantedEvent
(Object source, Context context, 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
-
Constructor Details
-
OnGrantedEvent
Instantiates a new granted event.- Parameters:
source
- the component that published the event (nevernull
)context
- the context associated with this eventrole
- the role of the leader
-