public class GridDhtLockRequest extends GridDistributedLockRequest
idxvercacheIdaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridDhtLockRequest()
Empty constructor required for
Externalizable. |
GridDhtLockRequest(int cacheId,
UUID nodeId,
GridCacheVersion nearXidVer,
long threadId,
IgniteUuid futId,
IgniteUuid miniId,
GridCacheVersion lockVer,
AffinityTopologyVersion topVer,
boolean isInTx,
boolean isRead,
TransactionIsolation isolation,
boolean isInvalidate,
long timeout,
int dhtCnt,
int nearCnt,
int txSize,
UUID subjId,
int taskNameHash,
long accessTtl,
boolean skipStore,
boolean storeUsed,
boolean keepBinary,
boolean addDepInfo) |
| Modifier and Type | Method and Description |
|---|---|
long |
accessTtl() |
void |
addDhtKey(KeyCacheObject key,
boolean invalidateEntry,
GridCacheContext ctx)
Adds a DHT key.
|
void |
addNearKey(KeyCacheObject key,
GridCacheSharedContext ctx)
Adds a Near key.
|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
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 |
invalidateNearEntry(int idx) |
void |
markLastKeyForPreload()
Marks last added key for preloading.
|
IgniteUuid |
miniId() |
List<KeyCacheObject> |
nearKeys() |
UUID |
nearNodeId() |
boolean |
needPreloadKey(int idx) |
GridCacheVersion |
owned(KeyCacheObject key) |
void |
owned(KeyCacheObject key,
GridCacheVersion ownerMapped)
Sets owner and its mapped version.
|
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() |
int |
taskNameHash() |
AffinityTopologyVersion |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
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, 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 GridDhtLockRequest()
Externalizable.public GridDhtLockRequest(int cacheId,
UUID nodeId,
GridCacheVersion nearXidVer,
long threadId,
IgniteUuid futId,
IgniteUuid miniId,
GridCacheVersion lockVer,
@NotNull
AffinityTopologyVersion topVer,
boolean isInTx,
boolean isRead,
TransactionIsolation isolation,
boolean isInvalidate,
long timeout,
int dhtCnt,
int nearCnt,
int txSize,
@Nullable
UUID subjId,
int taskNameHash,
long accessTtl,
boolean skipStore,
boolean storeUsed,
boolean keepBinary,
boolean addDepInfo)
cacheId - Cache ID.nodeId - Node ID.nearXidVer - Near transaction ID.threadId - Thread ID.futId - Future ID.miniId - Mini future ID.lockVer - Cache version.topVer - Topology version.isInTx - True if implicit transaction lock.isRead - Indicates whether implicit lock is for read or write operation.isolation - Transaction isolation.isInvalidate - Invalidation flag.timeout - Lock timeout.dhtCnt - DHT count.nearCnt - Near count.txSize - Expected transaction size.subjId - Subject ID.taskNameHash - Task name hash code.accessTtl - TTL for read operation.skipStore - Skip store flag.storeUsed - Cache store used flag.keepBinary - Keep binary flag.addDepInfo - Deployment info flag.public UUID nearNodeId()
public UUID subjectId()
public int taskNameHash()
public AffinityTopologyVersion topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessagepublic void addNearKey(KeyCacheObject key, GridCacheSharedContext ctx) throws IgniteCheckedException
key - Key.ctx - Context.IgniteCheckedException - If failed.public List<KeyCacheObject> nearKeys()
public void addDhtKey(KeyCacheObject key, boolean invalidateEntry, GridCacheContext ctx) throws IgniteCheckedException
key - Key.invalidateEntry - Flag indicating whether node should attempt to invalidate reader.ctx - Context.IgniteCheckedException - If failed.public void markLastKeyForPreload()
public boolean needPreloadKey(int idx)
idx - Key index.True if need to preload key with given index.public void owned(KeyCacheObject key, GridCacheVersion ownerMapped)
key - Key.ownerMapped - Owner mapped version.@Nullable public GridCacheVersion owned(KeyCacheObject key)
key - Key.public boolean invalidateNearEntry(int idx)
idx - Entry index to check.True if near entry should be invalidated.public IgniteUuid miniId()
public long accessTtl()
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.7.5 Release Date : June 4 2019