Class GridDistributedLockRequest

    • Field Detail

      • idx

        protected int idx
        Key-bytes index.
    • Constructor Detail

      • GridDistributedLockRequest

        public GridDistributedLockRequest()
        Empty constructor.
      • GridDistributedLockRequest

        public GridDistributedLockRequest​(int cacheId,
                                          UUID nodeId,
                                          @Nullable
                                          @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)
        Parameters:
        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.
    • Method Detail

      • nodeId

        public UUID nodeId()
        Returns:
        Node ID.
      • nearXidVersion

        public GridCacheVersion nearXidVersion()
        Returns:
        Near transaction ID.
      • threadId

        public long threadId()
        Returns:
        Owner node thread ID.
      • futureId

        public IgniteUuid futureId()
        Returns:
        Future ID.
      • inTx

        public boolean inTx()
        Returns:
        True if implicit transaction lock.
      • isInvalidate

        public boolean isInvalidate()
        Returns:
        Invalidate flag.
      • txRead

        public boolean txRead()
        Returns:
        True if lock is implicit and for a read operation.
      • returnValue

        public boolean returnValue​(int idx)
        Parameters:
        idx - Key index.
        Returns:
        Flag indicating whether a value should be returned.
      • skipStore

        public boolean skipStore()
        Returns:
        Skip store flag.
      • keepBinary

        public void keepBinary​(boolean keepBinary)
        Parameters:
        keepBinary - Keep binary flag.
      • keepBinary

        public boolean keepBinary()
        Returns:
        Keep binary.
      • storeUsed

        public boolean storeUsed()
        Returns:
        Flag indicating whether transaction use cache store.
      • storeUsed

        public void storeUsed​(boolean storeUsed)
        Parameters:
        storeUsed - Store used value.
      • isolation

        public TransactionIsolation isolation()
        Returns:
        Transaction isolation or null if not in transaction.
      • txSize

        public int txSize()
        Returns:
        Tx size.
      • addKeyBytes

        public void addKeyBytes​(KeyCacheObject key,
                                boolean retVal)
        Adds a key.
        Parameters:
        key - Key.
        retVal - Flag indicating whether value should be returned.
      • partition

        public int partition()
        Overrides:
        partition in class GridCacheMessage
        Returns:
        Partition ID this message is targeted to or -1 if it cannot be determined.
      • timeout

        public long timeout()
        Returns:
        Max lock wait time.
      • directType

        public short directType()
        Gets message type.
        Returns:
        Message type.