|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.EventObject
com.tangosol.net.MemberEvent
public class MemberEvent
An event which indicates that membership has changed:
A MemberEvent object is sent as an argument to the MemberListener interface methods.
MemberListener
Field Summary | |
---|---|
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. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
MemberEvent(java.lang.Object oSource, int nId, Member member) Constructs a new MemberEvent. |
Method Summary | |
---|---|
void |
dispatch(java.util.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. |
java.lang.String |
toString() Returns a String representation of this MemberEvent object. |
Methods inherited from class java.util.EventObject |
---|
getSource |
Field Detail |
---|
public static final int MEMBER_JOINED
public static final int MEMBER_LEAVING
public static final int MEMBER_LEFT
Constructor Detail |
---|
public MemberEvent(java.lang.Object oSource, int nId, Member member)
oSource
- the source object that fired the event (a Service)nId
- this event's idmember
- the Member for which the event appliesMethod Detail |
---|
public int getId()
public Member getMember()
public Service getService()
public void dispatch(Listeners listeners)
listeners
- the listeners collectionjava.lang.ClassCastException
- if any of the targets is not an instance of MemberListener interfacepublic void dispatch(java.util.EventListener[] aListeners)
aListeners
- the array of listenersjava.lang.ClassCastException
- if any of the targets is not an instance of MemberListener interfacepublic boolean isLocal()
public java.lang.String toString()
toString
in class java.util.EventObject
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |