Class GridNearAtomicAbstractUpdateRequest

    • Field Detail

      • CACHE_MSG_IDX

        public static final int CACHE_MSG_IDX
        Message index.
      • nodeId

        protected UUID nodeId
        Target node ID.
      • futId

        protected long futId
        Future version.
      • taskNameHash

        protected int taskNameHash
        Task name hash.
      • flags

        @GridToStringExclude
        protected byte flags
        Compressed boolean flags. Make sure 'toString' is updated when add new flag.
    • Constructor Detail

      • GridNearAtomicAbstractUpdateRequest

        public GridNearAtomicAbstractUpdateRequest()
      • GridNearAtomicAbstractUpdateRequest

        protected GridNearAtomicAbstractUpdateRequest​(int cacheId,
                                                      UUID nodeId,
                                                      long futId,
                                                      @NotNull
                                                      @NotNull AffinityTopologyVersion topVer,
                                                      CacheWriteSynchronizationMode syncMode,
                                                      GridCacheOperation op,
                                                      int taskNameHash,
                                                      byte flags,
                                                      boolean addDepInfo)
        Constructor.
        Parameters:
        cacheId - Cache ID.
        nodeId - Node ID.
        futId - Future ID.
        topVer - Topology version.
        syncMode - Synchronization mode.
        op - Cache update operation.
        taskNameHash - Task name hash code.
        flags - Flags.
        addDepInfo - Deployment info flag.
    • Method Detail

      • nearCache

        public boolean nearCache()
        Returns:
        True if near cache is enabled on node initiated operation.
      • addDeploymentInfo

        public final boolean addDeploymentInfo()
        Deployment enabled flag indicates whether deployment info has to be added to this message.
        Specified by:
        addDeploymentInfo in class GridCacheMessage
        Returns:
        true or if deployment info must be added to the the message, false otherwise.
      • taskNameHash

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

        public UUID nodeId()
        Returns:
        Target node ID.
      • futureId

        public long futureId()
        Returns:
        Near node future ID.
      • onResponse

        public boolean onResponse​(GridNearAtomicUpdateResponse res)
        Parameters:
        res - Response.
        Returns:
        True if current response was null.
      • returnValue

        public final boolean returnValue()
        Returns:
        Return value flag.
      • returnValue

        public final void returnValue​(boolean val)
        Parameters:
        val - Return value flag.
      • skipStore

        public final boolean skipStore()
        Returns:
        Skip write-through to a persistent storage.
      • skipStore

        public void skipStore​(boolean val)
        Parameters:
        val - Skip store flag.
      • keepBinary

        public final boolean keepBinary()
        Returns:
        Keep binary flag.
      • keepBinary

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

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

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

        public abstract javax.cache.expiry.ExpiryPolicy expiry()
        Returns:
        Expiry policy.
      • invokeArguments

        @Nullable
        public abstract @Nullable Object[] invokeArguments()
        Returns:
        Optional arguments for entry processor.
      • keys

        public abstract List<KeyCacheObject> keys()
        Returns:
        Keys for this update request.
      • values

        public abstract List<?> values()
        Returns:
        Values for this update request.
      • value

        public abstract CacheObject value​(int idx)
        Parameters:
        idx - Key index.
        Returns:
        Value.
      • entryProcessor

        public abstract javax.cache.processor.EntryProcessor<Object,​Object,​Object> entryProcessor​(int idx)
        Parameters:
        idx - Key index.
        Returns:
        Entry processor.
      • writeValue

        public abstract CacheObject writeValue​(int idx)
        Parameters:
        idx - Index to get.
        Returns:
        Write value - either value, or transform closure.
      • conflictVersions

        @Nullable
        public abstract @Nullable List<GridCacheVersion> conflictVersions()
        Returns:
        Conflict versions.
      • conflictVersion

        @Nullable
        public abstract @Nullable GridCacheVersion conflictVersion​(int idx)
        Parameters:
        idx - Index.
        Returns:
        Conflict version.
      • conflictTtl

        public abstract long conflictTtl​(int idx)
        Parameters:
        idx - Index.
        Returns:
        Conflict TTL.
      • conflictExpireTime

        public abstract long conflictExpireTime​(int idx)
        Parameters:
        idx - Index.
        Returns:
        Conflict expire time.
      • cleanup

        public abstract void cleanup​(boolean clearKeys)
        Cleanup values.
        Parameters:
        clearKeys - If true clears keys.
      • size

        public abstract int size()
        Returns:
        Keys size.
      • key

        public abstract KeyCacheObject key​(int idx)
        Parameters:
        idx - Key index.
        Returns:
        Key.