public final class CacheInvalidationListener extends Object implements CacheEventListener, NotifiableEventListener<ICacheService>
Constructor and Description |
---|
CacheInvalidationListener(ClientEndpoint endpoint,
long callId,
CacheContext cacheContext) |
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(Object eventObject)
Cache Event handling function.
|
void |
onDeregister(ICacheService cacheService,
String serviceName,
String topic,
EventRegistration registration)
Called when this listener deregistered from
EventService . |
void |
onRegister(ICacheService cacheService,
String serviceName,
String topic,
EventRegistration registration)
Called when this listener registered to
EventService . |
public CacheInvalidationListener(ClientEndpoint endpoint, long callId, CacheContext cacheContext)
public void handleEvent(Object eventObject)
CacheEventListener
handleEvent
in interface CacheEventListener
eventObject
- Event data object, can be one of CacheEventSet
or CacheEventData
classes.Event Types that can be handled.
public void onRegister(ICacheService cacheService, String serviceName, String topic, EventRegistration registration)
NotifiableEventListener
EventService
.onRegister
in interface NotifiableEventListener<ICacheService>
cacheService
- the service instance that event belongs toserviceName
- name of the service that event belongs totopic
- name of the topic that event belongs toregistration
- the EventRegistration
instance
that holds information about the registrationpublic void onDeregister(ICacheService cacheService, String serviceName, String topic, EventRegistration registration)
NotifiableEventListener
EventService
.onDeregister
in interface NotifiableEventListener<ICacheService>
cacheService
- the service instance that event belongs toserviceName
- name of the service that event belongs totopic
- name of the topic that event belongs toregistration
- the EventRegistration
instance
that holds information about the registrationCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.