public class GridDistributedLockRequest extends GridDistributedBaseMessage
| Modifier and Type | Field and Description |
|---|---|
protected int |
idx
Key-bytes index.
|
vercacheIdaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| 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,
boolean skipStore,
boolean keepBinary,
boolean addDepInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyBytes(KeyCacheObject key,
boolean retVal,
GridCacheContext ctx)
Adds a key.
|
short |
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 |
inTx() |
boolean |
isInvalidate() |
TransactionIsolation |
isolation() |
boolean |
keepBinary() |
void |
keepBinary(boolean keepBinary) |
List<KeyCacheObject> |
keys() |
IgniteLogger |
messageLogger(GridCacheSharedContext ctx) |
GridCacheVersion |
nearXidVersion() |
UUID |
nodeId() |
int |
partition() |
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 |
returnValue(int idx) |
boolean |
skipStore() |
boolean |
storeUsed() |
void |
storeUsed(boolean storeUsed) |
long |
threadId() |
long |
timeout() |
String |
toString() |
boolean |
txRead() |
int |
txSize() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addDeploymentInfo, committedVersions, completedVersions, rolledbackVersions, version, versioncacheGroupMessage, cacheId, cacheId, handlerIdappendFlag, classError, deployInfo, error, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, topologyVersion, transferExpiryPolicy, 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,
boolean skipStore,
boolean keepBinary,
boolean addDepInfo)
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.skipStore - Skip store flag.addDepInfo - Deployment info 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 skipStore()
public void keepBinary(boolean keepBinary)
keepBinary - Keep binary flag.public boolean keepBinary()
public boolean storeUsed()
public void storeUsed(boolean storeUsed)
storeUsed - Store used value.public TransactionIsolation isolation()
public int txSize()
public void addKeyBytes(KeyCacheObject key, boolean retVal, GridCacheContext ctx) throws IgniteCheckedException
key - Key.retVal - Flag indicating whether value should be returned.ctx - Context.IgniteCheckedException - If failed.public List<KeyCacheObject> keys()
public int partition()
partition in class GridCacheMessage-1 if it cannot be determined.public long timeout()
public IgniteLogger messageLogger(GridCacheSharedContext ctx)
messageLogger in class GridCacheMessagectx - Context.public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessagectx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridCacheMessagectx - 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 short directType()
public byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridCacheIdMessagepublic String toString()
toString in class GridDistributedBaseMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017