public class CacheContainsKeyOperation extends KeyBasedCacheOperation implements ReadonlyOperation
More formally, returns true if and only if the cache contains a mapping for a key k such that key.equals(k). (There can be at most one such mapping.)
backupRecord, key, responsecacheService, dontCreateCacheRecordStoreIfNotExist, recordStore, tenantContext, wanEventPublishernameGENERIC_PARTITION_ID| Constructor and Description |
|---|
CacheContainsKeyOperation() |
CacheContainsKeyOperation(String name,
Data key) |
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns type identifier for this class.
|
void |
run()
Runs the operation.
|
getResponse, readInternal, writeInternalafterRun, beforeRun, beforeRunInternal, dispose, getAsyncBackupCount, getFactoryId, getServiceName, getServiceNamespace, getSyncBackupCount, logError, onInvocationException, publishWanRemove, publishWanUpdate, publishWanUpdate, publishWanUpdategetName, toStringcall, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, onExecutionFailure, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitionIdreadData, writeDatapublic void run()
throws Exception
OperationOperation.run() or Operation.call() method should be implemented; not both.
Runs after wait-support, supposed to do actual operationrun in class OperationExceptionOperation.call()public int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.