public class GridDhtLockRequest<K,V> extends GridDistributedLockRequest<K,V>
idxverCACHE_MSG_INDEX_FIELD_NAME, MAX_CACHE_MSG_LOOKUP_INDEXBIT_SET_NOT_READ, BOOLEAN_ARR_NOT_READ, BYTE_ARR_LIST_NOT_READ, BYTE_ARR_NOT_READ, CACHE_VER_NOT_READ, CHAR_ARR_NOT_READ, CLOCK_DELTA_VER_NOT_READ, commState, DHT_PART_EXCHANGE_ID_NOT_READ, DOUBLE_ARR_NOT_READ, DR_INT_REQ_ENTRY_NOT_READ, ENUM_NOT_READ, FLOAT_ARR_NOT_READ, GRID_UUID_NOT_READ, INT_ARR_NOT_READ, LONG_ARR_NOT_READ, LONG_LIST_NOT_READ, MSG_NOT_READ, NULL, SHORT_ARR_NOT_READ, STR_NOT_READ, UUID_NOT_READ, VAL_BYTES_NOT_READ| Constructor and Description |
|---|
GridDhtLockRequest()
Empty constructor required for
Externalizable. |
GridDhtLockRequest(UUID nodeId,
GridCacheVersion nearXidVer,
long threadId,
GridUuid futId,
GridUuid miniId,
GridCacheVersion lockVer,
long topVer,
boolean isInTx,
boolean isRead,
GridCacheTxIsolation isolation,
boolean isInvalidate,
long timeout,
int dhtCnt,
int nearCnt,
int txSize,
Object grpLockKey,
boolean partLock,
UUID subjId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDhtKey(K key,
byte[] keyBytes,
GridCacheTxEntry<K,V> writeEntry,
GridCacheVersion drVer,
boolean invalidateEntry,
GridCacheContext<K,V> ctx)
Adds a DHT key.
|
void |
addNearKey(K key,
byte[] keyBytes,
GridCacheContext<K,V> ctx)
Adds a Near key.
|
boolean |
allowForStartup() |
GridTcpCommunicationMessageAdapter |
clone() |
protected void |
clone0(GridTcpCommunicationMessageAdapter _msg)
Clones all fields of the provided message to
this. |
byte |
directType() |
void |
finishUnmarshal(GridCacheContext<K,V> ctx,
ClassLoader ldr)
This method is called after the message is deserialized and is responsible for
unmarshalling state marshalled in
GridCacheMessage.prepareMarshal(GridCacheContext) method. |
boolean |
invalidateNearEntry(int idx) |
GridUuid |
miniId() |
List<byte[]> |
nearKeyBytes() |
List<K> |
nearKeys() |
UUID |
nearNodeId() |
GridCacheVersion |
owned(K key) |
void |
owned(K key,
byte[] keyBytes,
GridCacheVersion ownerMapped)
Sets owner and its mapped version.
|
void |
prepareMarshal(GridCacheContext<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf) |
UUID |
subjectId() |
long |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf) |
addKeyBytes, drVersionByIndex, drVersionByIndex, drVersions, futureId, groupLock, groupLockKey, inTx, isInvalidate, isolation, keyBytes, keys, nearXidVersion, nodeId, partitionLock, returnFlags, returnValue, threadId, timeout, txRead, txSize, writeEntriescandidatesByIndex, candidatesByIndex, candidatesByKey, candidatesByKey, candidatesByKey, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versionclassError, deployInfo, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalTx, unmarshalValueBytesCollectionarrayIterator, messageReader, messageWriterequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridDhtLockRequest()
Externalizable.public GridDhtLockRequest(UUID nodeId, GridCacheVersion nearXidVer, long threadId, GridUuid futId, GridUuid miniId, GridCacheVersion lockVer, long topVer, boolean isInTx, boolean isRead, GridCacheTxIsolation isolation, boolean isInvalidate, long timeout, int dhtCnt, int nearCnt, int txSize, @Nullable Object grpLockKey, boolean partLock, @Nullable UUID subjId)
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.grpLockKey - Group lock key.partLock - True if partition lock.public boolean allowForStartup()
allowForStartup in class GridCacheMessage<K,V>True if this message is preloader message.public UUID nearNodeId()
public UUID subjectId()
public long topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessage<K,V>public List<byte[]> nearKeyBytes()
public void addNearKey(K key, byte[] keyBytes, GridCacheContext<K,V> ctx) throws GridException
key - Key.keyBytes - Key bytes.ctx - Context.GridException - If failed.public void addDhtKey(K key, byte[] keyBytes, GridCacheTxEntry<K,V> writeEntry, @Nullable GridCacheVersion drVer, boolean invalidateEntry, GridCacheContext<K,V> ctx) throws GridException
key - Key.keyBytes - Key bytes.writeEntry - Write entry.drVer - DR version.invalidateEntry - Flag indicating whether node should attempt to invalidate reader.ctx - Context.GridException - If failed.public void owned(K key, byte[] keyBytes, GridCacheVersion ownerMapped)
key - Key.keyBytes - Key bytes.ownerMapped - Owner mapped version.@Nullable public GridCacheVersion owned(K key)
key - Key.public boolean invalidateNearEntry(int idx)
idx - Entry index to check.True if near entry should be invalidated.public GridUuid miniId()
public void prepareMarshal(GridCacheContext<K,V> ctx) throws GridException
prepareMarshal in class GridDistributedLockRequest<K,V>ctx - Cache context.GridException - If failed.public void finishUnmarshal(GridCacheContext<K,V> ctx, ClassLoader ldr) throws GridException
GridCacheMessage.prepareMarshal(GridCacheContext) method.finishUnmarshal in class GridDistributedLockRequest<K,V>ctx - Context.ldr - Class loader.GridException - If failed.public GridTcpCommunicationMessageAdapter clone()
clone in class GridDistributedLockRequest<K,V>protected void clone0(GridTcpCommunicationMessageAdapter _msg)
this.clone0 in class GridDistributedLockRequest<K,V>_msg - Message to clone from.public boolean writeTo(ByteBuffer buf)
writeTo in class GridDistributedLockRequest<K,V>buf - Byte buffer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridDistributedLockRequest<K,V>buf - Byte buffer.public byte directType()
directType in class GridDistributedLockRequest<K,V>public String toString()
toString in class GridDistributedLockRequest<K,V>Copyright © 2014. All rights reserved.