public class MultipleEntryOperation extends AbstractMapOperation implements BackupAwareOperation
| Modifier and Type | Field and Description |
|---|---|
protected EntryBackupProcessor |
backupProcessor |
protected EntryProcessor |
entryProcessor |
protected RecordStore |
recordStore |
protected MapEntrySet |
responses |
mapContainer, mapServicename| Constructor and Description |
|---|
MultipleEntryOperation() |
MultipleEntryOperation(String name,
Set<Data> keys,
EntryProcessor entryProcessor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToResponses(Data key,
Data response) |
protected Map.Entry |
createMapEntry(Object key,
Object value) |
protected void |
doPostOps(Data key,
Object oldValue,
Map.Entry entry) |
protected boolean |
entryAddedOrUpdated(Map.Entry entry,
Data key,
Object oldValue,
long now) |
protected boolean |
entryAddedOrUpdatedBackup(Map.Entry entry,
Data key) |
protected boolean |
entryRemoved(Map.Entry entry,
Data key,
Object oldValue,
long now) |
protected boolean |
entryRemovedBackup(Map.Entry entry,
Data key) |
protected void |
evict(boolean backup) |
int |
getAsyncBackupCount()
The asynchronous backup count.
|
Operation |
getBackupOperation()
Creates the
BackupOperation responsible for making the backup. |
protected long |
getLatencyFrom(long begin) |
protected LocalMapStatsImpl |
getLocalMapStats() |
protected MapEventPublisher |
getMapEventPublisher() |
protected MapServiceContext |
getMapServiceContext() |
protected long |
getNow() |
protected RecordStore |
getRecordStore() |
Object |
getResponse() |
int |
getSyncBackupCount()
The synchronous backup count.
|
protected Object |
getValueFor(Data dataKey,
long now) |
protected boolean |
hasRegisteredListenerForThisMap() |
void |
innerBeforeRun() |
protected void |
invalidateNearCaches(Data key) |
protected boolean |
keyNotOwnedByThisPartition(Data key) |
protected boolean |
noOp(Map.Entry entry,
Object oldValue)
Entry has not exist and no add operation has been done.
|
protected Object |
nullifyOldValueIfNecessary(Object oldValue,
EntryEventType eventType)
Nullify old value if in memory format is object and operation is not removal
since old and new value in fired event
EntryEvent
may be same due to the object in memory format. |
protected Data |
process(Map.Entry entry) |
protected void |
processBackup(Map.Entry entry) |
protected Object |
publishEntryEvent(Data key,
Object value,
Object oldValue,
EntryEventType eventType) |
protected void |
publishWanReplicationEvent(Data key,
Object value,
EntryEventType eventType) |
protected void |
put(Data key,
Object value) |
protected void |
readInternal(ObjectDataInput in) |
boolean |
returnsResponse() |
void |
run() |
boolean |
shouldBackup()
Checks if a backup needs to be made.
|
protected Data |
toData(Object obj) |
protected Object |
toObject(Object data) |
String |
toString() |
protected void |
writeInternal(ObjectDataOutput out) |
afterRun, beforeRungetNamegetCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getExecutorName, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponseHandler, getService, getServiceName, getWaitTimeout, isUrgent, logError, onException, readData, setCallerUuid, setExecutorName, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitionIdprotected MapEntrySet responses
protected EntryProcessor entryProcessor
protected EntryBackupProcessor backupProcessor
protected transient RecordStore recordStore
public MultipleEntryOperation()
public MultipleEntryOperation(String name, Set<Data> keys, EntryProcessor entryProcessor)
public void innerBeforeRun()
public boolean returnsResponse()
returnsResponse in interface RemotePropagatable<Operation>returnsResponse in class AbstractMapOperationpublic Object getResponse()
getResponse in class AbstractOperationpublic boolean shouldBackup()
BackupAwareOperationshouldBackup in interface BackupAwareOperationpublic int getSyncBackupCount()
BackupAwareOperationgetSyncBackupCount in interface BackupAwareOperationpublic int getAsyncBackupCount()
BackupAwareOperationgetAsyncBackupCount in interface BackupAwareOperationpublic Operation getBackupOperation()
BackupAwareOperationBackupOperation responsible for making the backup.getBackupOperation in interface BackupAwareOperationprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class AbstractNamedOperationIOExceptionprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class AbstractNamedOperationIOExceptionprotected RecordStore getRecordStore()
protected boolean hasRegisteredListenerForThisMap()
protected Object nullifyOldValueIfNecessary(Object oldValue, EntryEventType eventType)
EntryEvent
may be same due to the object in memory format.protected MapEventPublisher getMapEventPublisher()
protected LocalMapStatsImpl getLocalMapStats()
protected boolean noOp(Map.Entry entry, Object oldValue)
protected boolean entryAddedOrUpdated(Map.Entry entry, Data key, Object oldValue, long now)
protected long getNow()
protected void invalidateNearCaches(Data key)
protected Object publishEntryEvent(Data key, Object value, Object oldValue, EntryEventType eventType)
protected void publishWanReplicationEvent(Data key, Object value, EntryEventType eventType)
protected MapServiceContext getMapServiceContext()
protected long getLatencyFrom(long begin)
protected void processBackup(Map.Entry entry)
protected boolean keyNotOwnedByThisPartition(Data key)
protected void evict(boolean backup)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.