public abstract class AbstractReplicatedMapAddEntryListenerMessageTask<Parameter> extends AbstractCallableMessageTask<Parameter> implements EntryListener<Object,Object>
clientEngine, clientMessage, connection, endpoint, endpointManager, 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() . |
processMessage
decodeClientMessage, encodeResponse, getClientVersion, getDistributedObjectName, getDistributedObjectType, getEndpoint, getMemberBuildInfo, getParameters, getPartitionId, getService, handleProcessingFailure, isAuthenticationMessage, run, sendClientMessage, sendClientMessage, sendClientMessage, sendResponse
public 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()
SecureRequest
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.getMethodName
in interface SecureRequest
getMethodName
in class AbstractMessageTask<Parameter>
public Permission getRequiredPermission()
getRequiredPermission
in interface SecureRequest
public 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)
EntryAddedListener
entryAdded
in interface EntryAddedListener<Object,Object>
event
- the event invoked when an entry is addedpublic void entryRemoved(EntryEvent<Object,Object> event)
EntryRemovedListener
entryRemoved
in interface EntryRemovedListener<Object,Object>
event
- the event invoked when an entry is removedpublic void entryUpdated(EntryEvent<Object,Object> event)
EntryUpdatedListener
entryUpdated
in interface EntryUpdatedListener<Object,Object>
event
- the event invoked when an entry is updatedpublic void entryEvicted(EntryEvent<Object,Object> event)
EntryEvictedListener
entryEvicted
in interface EntryEvictedListener<Object,Object>
event
- the event invoked when an entry is evictedpublic void mapEvicted(MapEvent event)
MapEvictedListener
IMap.evictAll()
.mapEvicted
in interface MapEvictedListener
event
- the map event invoked when all entries are evicted by IMap.evictAll()
public void mapCleared(MapEvent event)
MapClearedListener
IMap.clear()
.mapCleared
in interface MapClearedListener
event
- the map event invoked when all entries are removed by IMap.clear()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.