public abstract class HDMapOperation
extends com.hazelcast.map.impl.operation.MapOperation
IMap due to a
NativeOutOfMemoryError.
If an IMap is evictable, naturally expected thing is, all put operations should be successful.
Because if there is no more space, operation can be able to evict some entries and can put the new ones.
This abstract class forces the evictable record-stores on this partition thread to be evicted in the event of
a NativeOutOfMemoryError.
Used when InMemoryFormat is
NATIVE.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_FORCED_EVICTION_RETRY_COUNT |
static com.hazelcast.spi.properties.HazelcastProperty |
FORCED_EVICTION_RETRY_COUNT |
static String |
PROP_FORCED_EVICTION_RETRY_COUNT |
| Constructor and Description |
|---|
HDMapOperation() |
HDMapOperation(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun() |
protected void |
disposeDeferredBlocks() |
protected void |
evict(com.hazelcast.nio.serialization.Data justAddedKey) |
int |
getFactoryId() |
protected int |
getRetryCount() |
long |
getThreadId() |
void |
innerBeforeRun() |
void |
logError(Throwable e) |
void |
onExecutionFailure(Throwable e) |
void |
run() |
protected abstract void |
runInternal() |
void |
setThreadId(long threadId) |
beforeRun, canThisOpGenerateWANEvent, getCallerProvenance, getServiceName, getServiceNamespace, invalidateAllKeysInNearCaches, invalidateNearCache, invalidateNearCache, isPostProcessing, publishLoadAsWanUpdate, publishWanRemove, publishWanUpdate, setMapContainer, setMapServicegetName, readInternal, toString, writeInternalcall, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponse, getService, getWaitTimeout, isUrgent, onInvocationException, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDatapublic static final String PROP_FORCED_EVICTION_RETRY_COUNT
public static final int DEFAULT_FORCED_EVICTION_RETRY_COUNT
public static final com.hazelcast.spi.properties.HazelcastProperty FORCED_EVICTION_RETRY_COUNT
public HDMapOperation()
public HDMapOperation(String name)
public final int getFactoryId()
getFactoryId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializablegetFactoryId in class com.hazelcast.map.impl.operation.MapOperationpublic long getThreadId()
getThreadId in class com.hazelcast.map.impl.operation.MapOperationpublic void setThreadId(long threadId)
setThreadId in class com.hazelcast.map.impl.operation.MapOperationpublic void innerBeforeRun()
throws Exception
innerBeforeRun in class com.hazelcast.map.impl.operation.MapOperationExceptionpublic final void run()
run in class com.hazelcast.spi.Operationprotected int getRetryCount()
public void afterRun()
throws Exception
afterRun in class com.hazelcast.spi.OperationExceptionpublic void onExecutionFailure(Throwable e)
onExecutionFailure in class com.hazelcast.spi.Operationpublic void logError(Throwable e)
logError in class com.hazelcast.spi.Operationprotected final void evict(com.hazelcast.nio.serialization.Data justAddedKey)
evict in class com.hazelcast.map.impl.operation.MapOperationprotected abstract void runInternal()
protected final void disposeDeferredBlocks()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.