public class GridNearLockRequest extends GridDistributedLockRequest
idxvercacheIdaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridNearLockRequest()
Empty constructor required for
Externalizable. |
GridNearLockRequest(int cacheId,
@NotNull AffinityTopologyVersion topVer,
UUID nodeId,
long threadId,
IgniteUuid futId,
GridCacheVersion lockVer,
boolean isInTx,
boolean isRead,
boolean retVal,
TransactionIsolation isolation,
boolean isInvalidate,
long timeout,
int keyCnt,
int txSize,
boolean syncCommit,
@Nullable UUID subjId,
int taskNameHash,
long createTtl,
long accessTtl,
boolean skipStore,
boolean keepBinary,
boolean firstClientReq,
boolean nearCache,
boolean addDepInfo,
@Nullable String txLbl) |
| Modifier and Type | Method and Description |
|---|---|
long |
accessTtl() |
void |
addKeyBytes(KeyCacheObject key,
boolean retVal,
@Nullable GridCacheVersion dhtVer,
GridCacheContext ctx)
Adds a key.
|
long |
createTtl() |
GridCacheVersion |
dhtVersion(int idx) |
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
CacheEntryPredicate[] |
filter() |
void |
filter(CacheEntryPredicate[] filter,
GridCacheContext ctx) |
void |
finishUnmarshal(GridCacheSharedContext ctx,
ClassLoader ldr)
This method is called after the message is deserialized and is responsible for
unmarshalling state marshalled in
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method. |
boolean |
firstClientRequest() |
int |
miniId() |
void |
miniId(int miniId) |
boolean |
nearCache() |
boolean |
needReturnValue() |
void |
prepareMarshal(GridCacheSharedContext ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
UUID |
subjectId() |
boolean |
syncCommit() |
int |
taskNameHash() |
AffinityTopologyVersion |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
void |
topologyVersion(AffinityTopologyVersion topVer) |
String |
toString() |
@Nullable String |
txLabel() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addKeyBytes, futureId, inTx, isInvalidate, isolation, keepBinary, keepBinary, keys, messageLogger, nearXidVersion, nodeId, partition, returnValue, skipStore, storeUsed, storeUsed, threadId, timeout, txRead, txSizeaddDeploymentInfo, committedVersions, completedVersions, rolledbackVersions, version, versioncacheGroupMessage, cacheId, cacheId, handlerIdappendFlag, classError, deployInfo, error, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridNearLockRequest()
Externalizable.public GridNearLockRequest(int cacheId,
@NotNull
@NotNull AffinityTopologyVersion topVer,
UUID nodeId,
long threadId,
IgniteUuid futId,
GridCacheVersion lockVer,
boolean isInTx,
boolean isRead,
boolean retVal,
TransactionIsolation isolation,
boolean isInvalidate,
long timeout,
int keyCnt,
int txSize,
boolean syncCommit,
@Nullable
@Nullable UUID subjId,
int taskNameHash,
long createTtl,
long accessTtl,
boolean skipStore,
boolean keepBinary,
boolean firstClientReq,
boolean nearCache,
boolean addDepInfo,
@Nullable
@Nullable String txLbl)
cacheId - Cache ID.topVer - Topology version.nodeId - Node ID.threadId - Thread ID.futId - Future ID.lockVer - Cache version.isInTx - True if implicit transaction lock.isRead - Indicates whether implicit lock is for read or write operation.retVal - Return value flag.isolation - Transaction isolation.isInvalidate - Invalidation flag.timeout - Lock timeout.keyCnt - Number of keys.txSize - Expected transaction size.syncCommit - Synchronous commit flag.subjId - Subject ID.taskNameHash - Task name hash code.createTtl - TTL for create operation.accessTtl - TTL for read operation.skipStore - Skip store flag.firstClientReq - True if first lock request for lock operation sent from client node.addDepInfo - Deployment info flag.txLbl - Transaction label.public boolean nearCache()
True if near cache enabled on originating node.public boolean firstClientRequest()
True if first lock request for lock operation sent from client node.public AffinityTopologyVersion topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessagepublic void topologyVersion(AffinityTopologyVersion topVer)
topVer - Topology version.public UUID subjectId()
public int taskNameHash()
public boolean syncCommit()
public CacheEntryPredicate[] filter()
public void filter(CacheEntryPredicate[] filter, GridCacheContext ctx) throws IgniteCheckedException
filter - Filter.ctx - Context.IgniteCheckedException - If failed.public int miniId()
public void miniId(int miniId)
miniId - Mini future Id.public boolean needReturnValue()
public void addKeyBytes(KeyCacheObject key, boolean retVal, @Nullable @Nullable GridCacheVersion dhtVer, GridCacheContext ctx) throws IgniteCheckedException
key - Key.retVal - Flag indicating whether value should be returned.dhtVer - DHT version.ctx - Context.IgniteCheckedException - If failed.public GridCacheVersion dhtVersion(int idx)
idx - Index of the key.public long createTtl()
public long accessTtl()
@Nullable public @Nullable String txLabel()
public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedLockRequestctx - Cache context.IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedLockRequestctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridDistributedLockRequestbuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridDistributedLockRequestbuf - Byte buffer.reader - Reader.public short directType()
directType in interface MessagedirectType in class GridDistributedLockRequestpublic byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridDistributedLockRequestpublic String toString()
toString in class GridDistributedLockRequest
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021