Class GridNearAtomicAbstractUpdateFuture

    • Constructor Detail

      • GridNearAtomicAbstractUpdateFuture

        protected GridNearAtomicAbstractUpdateFuture​(GridCacheContext cctx,
                                                     GridDhtAtomicCache cache,
                                                     CacheWriteSynchronizationMode syncMode,
                                                     GridCacheOperation op,
                                                     @Nullable
                                                     @Nullable Object[] invokeArgs,
                                                     boolean retval,
                                                     @Nullable
                                                     @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc,
                                                     CacheEntryPredicate[] filter,
                                                     int taskNameHash,
                                                     boolean skipStore,
                                                     boolean keepBinary,
                                                     boolean recovery,
                                                     int remapCnt)
        Constructor.
        Parameters:
        cctx - Cache context.
        cache - Cache.
        syncMode - Synchronization mode.
        op - Operation.
        invokeArgs - Invoke arguments.
        retval - Return value flag.
        expiryPlc - Expiry policy.
        filter - Filter.
        taskNameHash - Task name hash.
        skipStore - Skip store flag.
        keepBinary - Keep binary flag.
        recovery - True if cache operation is called in recovery mode.
        remapCnt - Remap count.
    • Method Detail

      • map

        public final void map()
        Performs future mapping.
      • mapOnTopology

        protected abstract void mapOnTopology()
        Maps future on ready topology.
      • onPrimaryResponse

        public abstract void onPrimaryResponse​(UUID nodeId,
                                               GridNearAtomicUpdateResponse res,
                                               boolean nodeErr)
        Response callback.
        Parameters:
        nodeId - Node ID.
        res - Update response.
        nodeErr - True if response was created on node failure.
      • onDhtResponse

        public abstract void onDhtResponse​(UUID nodeId,
                                           GridDhtAtomicNearResponse res)
        Parameters:
        nodeId - Node ID.
        res - Response.
      • onDone

        public final boolean onDone​(@Nullable
                                    @Nullable Object res,
                                    @Nullable
                                    @Nullable Throwable err)
        Callback to notify that future is finished. Note that if non-null exception is passed in the result value will be ignored.
        Overrides:
        onDone in class GridFutureAdapter<Object>
        Parameters:
        res - Optional result.
        err - Optional error.
        Returns:
        True if result was set by this call.