public class GridNearLockRequest<K,V> extends GridDistributedLockRequest<K,V>
MessageAdapter.TypeidxverCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEXreader, readState| 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(K key,
byte[] keyBytes,
boolean retVal,
GridCacheVersion dhtVer,
GridCacheContext<K,V> ctx)
Adds a key.
|
GridCacheVersion |
dhtVersion(int idx) |
byte |
directType()
Gets message type.
|
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] |
filter() |
void |
filter(IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter,
GridCacheContext<K,V> ctx) |
void |
finishUnmarshal(GridCacheSharedContext<K,V> 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<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf)
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, keyBytes, keys, nearXidVersion, nodeId, partitionLock, returnFlags, returnValue, threadId, timeout, txRead, txSizecandidatesByIndex, candidatesByIndex, candidatesByKey, candidatesByKey, candidatesByKey, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versionallowForStartup, cacheId, cacheId, classError, deployInfo, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, transactional, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx, unmarshalValueBytesCollectionsetReader, skipRecoveryclone, 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 GridCacheMessage<K,V>public 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 IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter()
public void filter(IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter, GridCacheContext<K,V> 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(K key, byte[] keyBytes, boolean retVal, @Nullable GridCacheVersion dhtVer, GridCacheContext<K,V> ctx) throws IgniteCheckedException
key - Key.retVal - Flag indicating whether value should be returned.keyBytes - Key bytes.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<K,V> ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedLockRequest<K,V>ctx - Cache context.IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext<K,V> ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedLockRequest<K,V>ctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class GridDistributedLockRequest<K,V>buf - Byte buffer.writer - Writer.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>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015