public abstract class AbstractReplicatedMapAddEntryListenerMessageTask<Parameter> extends AbstractCallableMessageTask<Parameter> implements EntryListener<Object,Object>
clientEngine, clientMessage, connection, endpoint, logger, nodeEngine, parameters, serializationService| Constructor and Description |
|---|
AbstractReplicatedMapAddEntryListenerMessageTask(ClientMessage clientMessage,
Node node,
Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
call() |
protected abstract ClientMessage |
encodeEvent(Data key,
Data newValue,
Data oldValue,
Data mergingValue,
int type,
String uuid,
int numberOfAffectedEntries) |
void |
entryAdded(EntryEvent<Object,Object> event)
Invoked upon addition of an entry.
|
void |
entryEvicted(EntryEvent<Object,Object> event)
Invoked upon eviction of an entry.
|
void |
entryRemoved(EntryEvent<Object,Object> event)
Invoked upon removal of an entry.
|
void |
entryUpdated(EntryEvent<Object,Object> event)
Invoked upon update of an entry.
|
abstract Data |
getKey() |
String |
getMethodName()
Used for
SecurityInterceptor
Method name which called via a distributedObject
for map.put, methodName will be 'put'
For requests which do not produced via a distributedObject should return null, for example internal client. |
abstract Predicate |
getPredicate() |
Permission |
getRequiredPermission() |
String |
getServiceName() |
protected abstract boolean |
isLocalOnly() |
void |
mapCleared(MapEvent event)
Invoked when all entries are removed by
IMap.clear(). |
void |
mapEvicted(MapEvent event)
Invoked when all entries are evicted by
IMap.evictAll(). |
processMessagedecodeClientMessage, doRun, encodeResponse, getDistributedObjectName, getDistributedObjectType, getMemberBuildInfo, getParameters, getPartitionId, getService, handleProcessingFailure, run, sendClientMessage, sendClientMessage, sendClientMessage, sendResponsepublic AbstractReplicatedMapAddEntryListenerMessageTask(ClientMessage clientMessage, Node node, Connection connection)
protected Object call()
call in class AbstractCallableMessageTask<Parameter>public String getServiceName()
getServiceName in class AbstractMessageTask<Parameter>public String getMethodName()
SecureRequestSecurityInterceptor
Method name which called via a distributedObject
for map.put, methodName will be 'put'
For requests which do not produced via a distributedObject should return null, for example internal client.getMethodName in interface SecureRequestgetMethodName in class AbstractMessageTask<Parameter>public Permission getRequiredPermission()
getRequiredPermission in interface SecureRequestpublic abstract Predicate getPredicate()
public abstract Data getKey()
protected abstract boolean isLocalOnly()
protected abstract ClientMessage encodeEvent(Data key, Data newValue, Data oldValue, Data mergingValue, int type, String uuid, int numberOfAffectedEntries)
public void entryAdded(EntryEvent<Object,Object> event)
EntryAddedListenerentryAdded in interface EntryAddedListener<Object,Object>event - the event invoked when an entry is addedpublic void entryRemoved(EntryEvent<Object,Object> event)
EntryRemovedListenerentryRemoved in interface EntryRemovedListener<Object,Object>event - the event invoked when an entry is removedpublic void entryUpdated(EntryEvent<Object,Object> event)
EntryUpdatedListenerentryUpdated in interface EntryUpdatedListener<Object,Object>event - the event invoked when an entry is updatedpublic void entryEvicted(EntryEvent<Object,Object> event)
EntryEvictedListenerentryEvicted in interface EntryEvictedListener<Object,Object>event - the event invoked when an entry is evictedpublic void mapEvicted(MapEvent event)
MapEvictedListenerIMap.evictAll().mapEvicted in interface MapEvictedListenerevent - the map event invoked when all entries are evicted by IMap.evictAll()public void mapCleared(MapEvent event)
MapClearedListenerIMap.clear().
When a listener is registered as local-only then it will be invoked if and only if
the clear() method is called on the same instance where the listener
was registered to.mapCleared in interface MapClearedListenerevent - the map event invoked when all entries are removed by IMap.clear()Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.