public class GridDistributedLockRequest extends GridDistributedBaseMessage
| Modifier and Type | Field and Description |
|---|---|
protected int |
idx
Key-bytes index.
|
verCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridDistributedLockRequest()
Empty constructor.
|
GridDistributedLockRequest(int cacheId,
UUID nodeId,
GridCacheVersion nearXidVer,
long threadId,
IgniteUuid futId,
GridCacheVersion lockVer,
boolean isInTx,
boolean isRead,
TransactionIsolation isolation,
boolean isInvalidate,
long timeout,
int keyCnt,
int txSize,
IgniteTxKey grpLockKey,
boolean partLock,
boolean skipStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyBytes(KeyCacheObject key,
boolean retVal,
Collection<GridCacheMvccCandidate> cands,
GridCacheContext ctx)
Adds a key.
|
byte |
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. |
IgniteUuid |
futureId() |
boolean |
groupLock() |
IgniteTxKey |
groupLockKey() |
boolean |
inTx() |
boolean |
isInvalidate() |
TransactionIsolation |
isolation() |
List<KeyCacheObject> |
keys() |
GridCacheVersion |
nearXidVersion() |
UUID |
nodeId() |
boolean |
partitionLock() |
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.
|
boolean[] |
returnFlags() |
boolean |
returnValue(int idx) |
boolean |
skipStore() |
long |
threadId() |
long |
timeout() |
String |
toString() |
boolean |
txRead() |
int |
txSize() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
candidatesByIndex, candidatesByIndex, candidatesByKey, candidatesByKey, candidatesByKey, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versionallowForStartup, cacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridDistributedLockRequest()
public GridDistributedLockRequest(int cacheId,
UUID nodeId,
@Nullable
GridCacheVersion nearXidVer,
long threadId,
IgniteUuid futId,
GridCacheVersion lockVer,
boolean isInTx,
boolean isRead,
TransactionIsolation isolation,
boolean isInvalidate,
long timeout,
int keyCnt,
int txSize,
@Nullable
IgniteTxKey grpLockKey,
boolean partLock,
boolean skipStore)
cacheId - Cache ID.nodeId - Node ID.nearXidVer - Near transaction 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.isolation - Transaction isolation.isInvalidate - Invalidation flag.timeout - Lock timeout.keyCnt - Number of keys.txSize - Expected transaction size.grpLockKey - Group lock key if this is a group-lock transaction.partLock - True if this is a group-lock transaction request and whole partition is
locked.skipStore - Skip store flag.public UUID nodeId()
public GridCacheVersion nearXidVersion()
public long threadId()
public IgniteUuid futureId()
public boolean inTx()
True if implicit transaction lock.public boolean isInvalidate()
public boolean txRead()
True if lock is implicit and for a read operation.public boolean returnValue(int idx)
idx - Key index.public boolean[] returnFlags()
public boolean skipStore()
public TransactionIsolation isolation()
public int txSize()
public void addKeyBytes(KeyCacheObject key, boolean retVal, @Nullable Collection<GridCacheMvccCandidate> cands, GridCacheContext ctx) throws IgniteCheckedException
key - Key.retVal - Flag indicating whether value should be returned.cands - Candidates.ctx - Context.IgniteCheckedException - If failed.public List<KeyCacheObject> keys()
public boolean groupLock()
True if lock request for group-lock transaction.@Nullable public IgniteTxKey groupLockKey()
public boolean partitionLock()
True if partition is locked in group-lock transaction.public long timeout()
public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedBaseMessagectx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedBaseMessagectx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridDistributedBaseMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridDistributedBaseMessagebuf - Byte buffer.reader - Reader.public byte directType()
public byte fieldsCount()
public String toString()
toString in class GridDistributedBaseMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015