public class GridNearLockRequest<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 |
|---|
GridNearLockRequest()
Empty constructor required for
Externalizable. |
GridNearLockRequest(long topVer,
UUID nodeId,
long threadId,
GridUuid futId,
GridCacheVersion lockVer,
boolean isInTx,
boolean implicitTx,
boolean implicitSingleTx,
boolean isRead,
GridCacheTxIsolation isolation,
boolean isInvalidate,
long timeout,
boolean syncCommit,
boolean syncRollback,
int keyCnt,
int txSize,
Object grpLockKey,
boolean partLock,
UUID subjId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyBytes(K key,
byte[] keyBytes,
boolean retVal,
GridCacheVersion dhtVer,
GridCacheTxEntry<K,V> writeEntry,
GridCacheVersion drVer,
GridCacheContext<K,V> ctx)
Adds a key.
|
GridTcpCommunicationMessageAdapter |
clone() |
protected void |
clone0(GridTcpCommunicationMessageAdapter _msg)
Clones all fields of the provided message to
this. |
GridCacheVersion |
dhtVersion(int idx) |
byte |
directType() |
GridPredicate<GridCacheEntry<K,V>>[] |
filter() |
void |
filter(GridPredicate<GridCacheEntry<K,V>>[] filter,
GridCacheContext<K,V> ctx) |
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 |
implicitSingleTx() |
boolean |
implicitTx() |
GridUuid |
miniId() |
void |
miniId(GridUuid miniId) |
boolean |
onePhaseCommit() |
void |
onePhaseCommit(boolean onePhaseCommit) |
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() |
boolean |
syncCommit() |
boolean |
syncRollback() |
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, versionallowForStartup, classError, 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 GridNearLockRequest()
Externalizable.public GridNearLockRequest(long topVer,
UUID nodeId,
long threadId,
GridUuid futId,
GridCacheVersion lockVer,
boolean isInTx,
boolean implicitTx,
boolean implicitSingleTx,
boolean isRead,
GridCacheTxIsolation isolation,
boolean isInvalidate,
long timeout,
boolean syncCommit,
boolean syncRollback,
int keyCnt,
int txSize,
@Nullable
Object grpLockKey,
boolean partLock,
@Nullable
UUID subjId)
topVer - Topology version.nodeId - Node ID.threadId - Thread ID.futId - Future ID.lockVer - Cache version.isInTx - True if implicit transaction lock.implicitTx - Flag to indicate that transaction is implicit.implicitSingleTx - Implicit-transaction-with-one-key flag.isRead - Indicates whether implicit lock is for read or write operation.isolation - Transaction isolation.isInvalidate - Invalidation flag.timeout - Lock timeout.syncCommit - Synchronous commit flag.syncRollback - Synchronous rollback flag.keyCnt - Number of keys.txSize - Expected transaction size.grpLockKey - Group lock key if this is a group-lock transaction.partLock - If partition is locked.public long topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessage<K,V>public UUID subjectId()
public boolean implicitTx()
public boolean implicitSingleTx()
public boolean onePhaseCommit()
public void onePhaseCommit(boolean onePhaseCommit)
onePhaseCommit - One phase commit flag.public GridPredicate<GridCacheEntry<K,V>>[] filter()
public void filter(GridPredicate<GridCacheEntry<K,V>>[] filter, GridCacheContext<K,V> ctx) throws GridException
filter - Filter.ctx - Context.GridException - If failed.public boolean syncCommit()
public boolean syncRollback()
public GridUuid miniId()
public void miniId(GridUuid miniId)
miniId - Mini future Id.public void addKeyBytes(K key, byte[] keyBytes, boolean retVal, @Nullable GridCacheVersion dhtVer, @Nullable GridCacheTxEntry<K,V> writeEntry, @Nullable GridCacheVersion drVer, GridCacheContext<K,V> ctx) throws GridException
key - Key.retVal - Flag indicating whether value should be returned.keyBytes - Key bytes.dhtVer - DHT version.writeEntry - Write entry if implicit transaction mapped on one node.drVer - DR version.ctx - Context.GridException - If failed.public GridCacheVersion dhtVersion(int idx)
idx - Index of the key.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.