Class GridNearLockRequest

    • Constructor Detail

      • GridNearLockRequest

        public GridNearLockRequest()
        Empty constructor required for Externalizable.
      • GridNearLockRequest

        public GridNearLockRequest​(int cacheId,
                                   @NotNull
                                   @NotNull AffinityTopologyVersion topVer,
                                   UUID nodeId,
                                   long threadId,
                                   IgniteUuid futId,
                                   GridCacheVersion lockVer,
                                   boolean isInTx,
                                   boolean isRead,
                                   boolean retVal,
                                   TransactionIsolation isolation,
                                   boolean isInvalidate,
                                   long timeout,
                                   int keyCnt,
                                   int txSize,
                                   boolean syncCommit,
                                   int taskNameHash,
                                   long createTtl,
                                   long accessTtl,
                                   boolean skipStore,
                                   boolean keepBinary,
                                   boolean firstClientReq,
                                   boolean nearCache,
                                   boolean addDepInfo,
                                   @Nullable
                                   @Nullable String txLbl)
        Parameters:
        cacheId - Cache ID.
        topVer - Topology version.
        nodeId - Node 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.
        retVal - Return value flag.
        isolation - Transaction isolation.
        isInvalidate - Invalidation flag.
        timeout - Lock timeout.
        keyCnt - Number of keys.
        txSize - Expected transaction size.
        syncCommit - Synchronous commit flag.
        taskNameHash - Task name hash code.
        createTtl - TTL for create operation.
        accessTtl - TTL for read operation.
        skipStore - Skip store flag.
        firstClientReq - True if first lock request for lock operation sent from client node.
        addDepInfo - Deployment info flag.
        txLbl - Transaction label.
    • Method Detail

      • nearCache

        public boolean nearCache()
        Returns:
        True if near cache enabled on originating node.
      • firstClientRequest

        public boolean firstClientRequest()
        Returns:
        True if first lock request for lock operation sent from client node.
      • topologyVersion

        public void topologyVersion​(AffinityTopologyVersion topVer)
        Parameters:
        topVer - Topology version.
      • taskNameHash

        public int taskNameHash()
        Returns:
        Task name hash.q
      • syncCommit

        public boolean syncCommit()
        Returns:
        Sync commit flag.
      • miniId

        public int miniId()
        Returns:
        Mini future ID.
      • miniId

        public void miniId​(int miniId)
        Parameters:
        miniId - Mini future Id.
      • needReturnValue

        public boolean needReturnValue()
        Returns:
        Need return value flag.
      • addKeyBytes

        public void addKeyBytes​(KeyCacheObject key,
                                boolean retVal,
                                @Nullable
                                @Nullable GridCacheVersion dhtVer)
        Adds a key.
        Parameters:
        key - Key.
        retVal - Flag indicating whether value should be returned.
        dhtVer - DHT version.
      • dhtVersion

        public GridCacheVersion dhtVersion​(int idx)
        Parameters:
        idx - Index of the key.
        Returns:
        DHT version for key at given index.
      • createTtl

        public long createTtl()
        Returns:
        New TTL to set after entry is created, -1 to leave unchanged.
      • accessTtl

        public long accessTtl()
        Returns:
        TTL for read operation.
      • txLabel

        @Nullable
        public @Nullable String txLabel()
        Returns:
        Transaction label.