public class PartitionWideEntryWithPredicateOperation extends PartitionWideEntryOperation
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractMultipleEntryOperation.WanEventWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected EntryBackupProcessor |
backupProcessor |
protected EntryProcessor |
entryProcessor |
protected MapEntries |
responses |
protected List<AbstractMultipleEntryOperation.WanEventWrapper> |
wanEventList |
createRecordStoreOnDemand, mapContainer, mapEventPublisher, mapService, mapServiceContext, recordStorenameGENERIC_PARTITION_ID| Constructor and Description |
|---|
PartitionWideEntryWithPredicateOperation() |
PartitionWideEntryWithPredicateOperation(String name,
EntryProcessor entryProcessor,
Predicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
protected Map.Entry |
createMapEntry(Data 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) |
Operation |
getBackupOperation()
Creates the
BackupOperation responsible for making the backup. |
int |
getId()
Returns type identifier for this class.
|
protected long |
getLatencyFrom(long begin) |
protected LocalMapStatsImpl |
getLocalMapStats() |
protected long |
getNow() |
protected Predicate |
getPredicate() |
protected boolean |
hasRegisteredListenerForThisMap() |
protected boolean |
isEntryProcessable(Map.Entry entry) |
protected boolean |
isKeyProcessable(Data key) |
protected boolean |
noOp(Map.Entry entry,
Object oldValue)
Entry has not exist and no add operation has been done.
|
protected boolean |
noOp(Map.Entry entry,
Object oldValue,
long now)
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 void |
publishEntryEvent(Data key,
Object value,
Object oldValue,
EntryEventType eventType) |
protected void |
publishWanReplicationEvent(Data key,
Data value,
EntryEventType eventType) |
protected void |
put(Data key,
Object value) |
protected void |
readInternal(ObjectDataInput in) |
void |
setWanEventList(List<AbstractMultipleEntryOperation.WanEventWrapper> wanEventList) |
protected Data |
toData(Object obj) |
protected Object |
toObject(Object data) |
protected void |
toString(StringBuilder sb)
A template method allows for additional information to be passed into the
Operation.toString() method. |
protected void |
writeInternal(ObjectDataOutput out) |
getAsyncBackupCount, getResponse, getSyncBackupCount, innerBeforeRun, run, shouldBackupbeforeRun, evict, getFactoryId, getServiceName, getThreadId, invalidateAllKeysInNearCaches, invalidateNearCache, invalidateNearCache, isPostProcessing, setMapContainer, setMapService, setThreadIdgetNameafterRun, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, logError, onExecutionFailure, onInvocationException, onSetCallId, readData, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitionIdreadData, writeDataprotected MapEntries responses
protected EntryProcessor entryProcessor
protected EntryBackupProcessor backupProcessor
protected List<AbstractMultipleEntryOperation.WanEventWrapper> wanEventList
public PartitionWideEntryWithPredicateOperation()
public PartitionWideEntryWithPredicateOperation(String name, EntryProcessor entryProcessor, Predicate predicate)
protected Predicate getPredicate()
getPredicate in class PartitionWideEntryOperationpublic Operation getBackupOperation()
BackupAwareOperationBackupOperation responsible for making the backup.getBackupOperation in interface BackupAwareOperationgetBackupOperation in class PartitionWideEntryOperationBackupOperation responsible for making the backup.protected void toString(StringBuilder sb)
OperationOperation.toString() method. So an Operation
subclass can override this method and add additional debugging content. The default implementation does nothing so
one is not forced to provide an empty implementation.
It is a good practice always to call the super.toString(stringBuffer) when implementing this method to make sure
that the super class can inject content if needed.toString in class AbstractNamedOperationsb - the StringBuilder to add the debug info to.protected void readInternal(ObjectDataInput in) throws IOException
readInternal in class PartitionWideEntryOperationIOExceptionprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class PartitionWideEntryOperationIOExceptionpublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablegetId in class PartitionWideEntryOperationprotected boolean hasRegisteredListenerForThisMap()
protected Object nullifyOldValueIfNecessary(Object oldValue, EntryEventType eventType)
EntryEvent
may be same due to the object in memory format.protected LocalMapStatsImpl getLocalMapStats()
protected boolean noOp(Map.Entry entry, Object oldValue, long now)
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 publishEntryEvent(Data key, Object value, Object oldValue, EntryEventType eventType)
protected void publishWanReplicationEvent(Data key, Data value, EntryEventType eventType)
protected long getLatencyFrom(long begin)
protected void processBackup(Map.Entry entry)
protected boolean isKeyProcessable(Data key)
protected boolean isEntryProcessable(Map.Entry entry)
public void setWanEventList(List<AbstractMultipleEntryOperation.WanEventWrapper> wanEventList)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.