Class GridNearTxPrepareRequest

    • Constructor Detail

      • GridNearTxPrepareRequest

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

        public GridNearTxPrepareRequest​(IgniteUuid futId,
                                        AffinityTopologyVersion topVer,
                                        GridNearTxLocal tx,
                                        long timeout,
                                        Collection<IgniteTxEntry> reads,
                                        Collection<IgniteTxEntry> writes,
                                        boolean near,
                                        Map<UUID,​Collection<UUID>> txNodes,
                                        boolean last,
                                        boolean onePhaseCommit,
                                        boolean retVal,
                                        boolean implicitSingle,
                                        boolean explicitLock,
                                        int taskNameHash,
                                        boolean firstClientReq,
                                        boolean allowWaitTopFut,
                                        boolean addDepInfo,
                                        boolean recovery)
        Parameters:
        futId - Future ID.
        topVer - Topology version.
        tx - Transaction.
        timeout - Transaction timeout.
        reads - Read entries.
        writes - Write entries.
        near - True if mapping is for near caches.
        txNodes - Transaction nodes mapping.
        last - True if this last prepare request for node.
        onePhaseCommit - One phase commit flag.
        retVal - Return value flag.
        implicitSingle - Implicit single flag.
        explicitLock - Explicit lock flag.
        taskNameHash - Task name hash.
        firstClientReq - True if first optimistic tx prepare request sent from client node.
        allowWaitTopFut - True if it is safe for first client request to wait for topology future.
        addDepInfo - Deployment info flag.
    • Method Detail

      • allowWaitTopologyFuture

        public boolean allowWaitTopologyFuture()
        Returns:
        True if it is safe for first client request to wait for topology future completion.
      • recovery

        public final boolean recovery()
        Returns:
        Recovery flag.
      • recovery

        public void recovery​(boolean val)
        Parameters:
        val - Recovery flag.
      • firstClientRequest

        public final boolean firstClientRequest()
        Returns:
        True if first optimistic tx prepare request sent from client node.
      • near

        public final boolean near()
        Returns:
        True if mapping is for near-enabled caches.
      • futureId

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

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

        public void miniId​(int miniId)
        Parameters:
        miniId - Mini future ID.
      • taskNameHash

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

        public final boolean implicitSingle()
        Returns:
        Implicit single flag.
      • explicitLock

        public final boolean explicitLock()
        Returns:
        Explicit lock flag.
      • txLabel

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

        public void cloneEntries()
      • transferExpiryPolicy

        protected boolean transferExpiryPolicy()
        Overrides:
        transferExpiryPolicy in class GridCacheMessage
        Returns:
        True if entries expire policy should be marshalled.
      • partition

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