Class GridNearOptimisticTxPrepareFutureAdapter

    • Constructor Detail

      • GridNearOptimisticTxPrepareFutureAdapter

        protected GridNearOptimisticTxPrepareFutureAdapter​(GridCacheSharedContext cctx,
                                                           GridNearTxLocal tx)
        Parameters:
        cctx - Context.
        tx - Transaction.
    • Method Detail

      • topologyReadLock

        protected final GridDhtTopologyFuture topologyReadLock()
        Acquires topology read lock.
        Returns:
        Topology ready future.
      • topologyReadUnlock

        protected final void topologyReadUnlock()
        Releases topology read lock.
      • prepareOnTopology

        protected final void prepareOnTopology​(boolean remap,
                                               @Nullable
                                               @Nullable Runnable c)
        Parameters:
        remap - Remap flag.
        c - Optional closure to run after map.
      • prepare0

        protected abstract void prepare0​(boolean remap,
                                         boolean topLocked)
        Parameters:
        remap - Remap flag.
        topLocked - True if thread already acquired lock preventing topology change.
      • errorOrTimeoutOnTopologyVersion

        protected boolean errorOrTimeoutOnTopologyVersion​(IgniteCheckedException e,
                                                          boolean timedOut)
        Parameters:
        e - Exception.
        timedOut - True if timed out.