public class GridNearLockRequest extends GridDistributedLockRequest
idxverCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridNearLockRequest()
Empty constructor required for
Externalizable. |
GridNearLockRequest(int cacheId,
long topVer,
UUID nodeId,
long threadId,
IgniteUuid futId,
GridCacheVersion lockVer,
boolean isInTx,
boolean implicitTx,
boolean implicitSingleTx,
boolean isRead,
TransactionIsolation isolation,
boolean isInvalidate,
long timeout,
int keyCnt,
int txSize,
boolean syncCommit,
IgniteTxKey grpLockKey,
boolean partLock,
UUID subjId,
int taskNameHash,
long accessTtl) |
| Modifier and Type | Method and Description |
|---|---|
long |
accessTtl() |
void |
addKeyBytes(KeyCacheObject key,
boolean retVal,
GridCacheVersion dhtVer,
GridCacheContext ctx)
Adds a key.
|
GridCacheVersion |
dhtVersion(int idx) |
byte |
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 |
hasTransforms() |
void |
hasTransforms(boolean hasTransforms) |
boolean |
implicitSingleTx() |
boolean |
implicitTx() |
IgniteUuid |
miniId() |
void |
miniId(IgniteUuid miniId) |
boolean |
onePhaseCommit() |
void |
onePhaseCommit(boolean onePhaseCommit) |
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() |
long |
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, groupLock, groupLockKey, inTx, isInvalidate, isolation, keys, nearXidVersion, nodeId, partitionLock, returnFlags, returnValue, threadId, timeout, txRead, txSizecandidatesByIndex, 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, prepare, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridNearLockRequest()
Externalizable.public GridNearLockRequest(int cacheId,
long topVer,
UUID nodeId,
long threadId,
IgniteUuid futId,
GridCacheVersion lockVer,
boolean isInTx,
boolean implicitTx,
boolean implicitSingleTx,
boolean isRead,
TransactionIsolation isolation,
boolean isInvalidate,
long timeout,
int keyCnt,
int txSize,
boolean syncCommit,
@Nullable
IgniteTxKey grpLockKey,
boolean partLock,
@Nullable
UUID subjId,
int taskNameHash,
long accessTtl)
cacheId - Cache ID.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.keyCnt - Number of keys.txSize - Expected transaction size.syncCommit - Synchronous commit flag.grpLockKey - Group lock key if this is a group-lock transaction.partLock - If partition is locked.subjId - Subject ID.taskNameHash - Task name hash code.accessTtl - TTL for read operation.public long topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessagepublic UUID subjectId()
public int taskNameHash()
public boolean implicitTx()
public boolean implicitSingleTx()
public boolean onePhaseCommit()
public void onePhaseCommit(boolean onePhaseCommit)
onePhaseCommit - One phase commit flag.public boolean syncCommit()
public CacheEntryPredicate[] filter()
public void filter(CacheEntryPredicate[] filter, GridCacheContext ctx) throws IgniteCheckedException
filter - Filter.ctx - Context.IgniteCheckedException - If failed.public IgniteUuid miniId()
public void miniId(IgniteUuid miniId)
miniId - Mini future Id.public void hasTransforms(boolean hasTransforms)
hasTransforms - True if originating transaction has transform entries.public boolean hasTransforms()
True if originating transaction has transform entries.public void addKeyBytes(KeyCacheObject key, boolean retVal, @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 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 byte 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 Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015