public abstract class AbstractLeaderEvent extends ApplicationEvent
ApplicationEvent class for leader based events. All custom event
classes should be derived from this class.source| Constructor and Description |
|---|
AbstractLeaderEvent(Object source)
Create a new ApplicationEvent.
|
AbstractLeaderEvent(Object source,
Context context,
String role)
Create a new ApplicationEvent.
|
| Modifier and Type | Method and Description |
|---|---|
Context |
getContext()
Get the
Context associated with this event. |
String |
getRole()
Get the role of the leader.
|
String |
toString() |
getTimestampgetSourcepublic AbstractLeaderEvent(Object source)
source - the component that published the event (never null)