public abstract class AbstractICacheEvent extends EventObject implements ICacheEvent
ICacheEvent.| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
source| Constructor and Description |
|---|
AbstractICacheEvent(Object source,
Member member,
int eventType)
Constructs a prototypical Cache Event.
|
| Modifier and Type | Method and Description |
|---|---|
CacheEventType |
getEventType()
Returns the event type
EntryEventType. |
Member |
getMember()
Returns the member that fired this event.
|
String |
getName()
Returns the name of the cache for this event.
|
Object |
getSource()
Returns the object on which the event initially occurred.
|
String |
toString()
Returns a String representation of this event.
|
protected final String name
public AbstractICacheEvent(Object source, Member member, int eventType)
source - The object on which the Event initially occurred.member - The interface to the cluster member (node).eventType - The event type as an enum EntryEventType integer.IllegalArgumentException - if source is null.public Object getSource()
getSource in class EventObjectpublic Member getMember()
getMember in interface ICacheEventpublic CacheEventType getEventType()
EntryEventType.getEventType in interface ICacheEventEntryEventType.public String getName()
getName in interface ICacheEventpublic String toString()
toString in class EventObjectCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.