public class MemberEvent extends EventObject
MemberListener
Modifier and Type | Field | Description |
---|---|---|
static int |
MEMBER_JOINED |
This event indicates that a Member has joined.
|
static int |
MEMBER_LEAVING |
This event indicates that a Member is leaving.
|
static int |
MEMBER_LEFT |
This event indicates that a Member has left.
|
static int |
MEMBER_RECOVERED |
This event indicates that a Member has performed persistence recovery.
|
source
Constructor | Description |
---|---|
MemberEvent(Object oSource,
int nId,
Member member) |
Constructs a new MemberEvent.
|
Modifier and Type | Method | Description |
---|---|---|
void |
dispatch(EventListener[] aListeners) |
Dispatch this event to the specified array of listeners.
|
void |
dispatch(Listeners listeners) |
Dispatch this event to the specified listeners collection.
|
int |
getId() |
Return this event's id.
|
Member |
getMember() |
Return the Member associated with this event.
|
Service |
getService() |
Return the Service that fired the event
|
boolean |
isLocal() |
Check whether a Member object for this event represents the local
member of the cluster.
|
String |
toString() |
Returns a String representation of this MemberEvent object.
|
getSource
public static final int MEMBER_JOINED
public static final int MEMBER_LEAVING
public static final int MEMBER_LEFT
public static final int MEMBER_RECOVERED
public int getId()
public Member getMember()
public Service getService()
public void dispatch(Listeners listeners)
listeners
- the listeners collectionClassCastException
- if any of the targets is not
an instance of MemberListener interfacepublic void dispatch(EventListener[] aListeners)
aListeners
- the array of listenersClassCastException
- if any of the targets is not
an instance of MemberListener interfacepublic boolean isLocal()
public String toString()
toString
in class EventObject