ptupitsyn commented on a change in pull request #8174:
URL: https://github.com/apache/ignite/pull/8174#discussion_r492924533



##########
File path: modules/core/src/main/java/org/apache/ignite/client/ClientCache.java
##########
@@ -293,11 +529,36 @@
      */
     public boolean putIfAbsent(K key, V val) throws ClientException;
 
+    /**
+     * Atomically associates the specified key with the given value if it is 
not already associated with a value.
+     * <p>
+     * This is equivalent to:
+     * <pre><code>
+     * if (!cache.containsKey(key)) {}
+     *   cache.put(key, value);
+     *   return true;
+     * } else {
+     *   return false;
+     * }
+     * </code></pre>
+     * except that the action is performed atomically.
+     *
+     * @param key Key with which the specified value is to be associated.
+     * @param val Value to be associated with the specified key.
+     * @return <tt>true</tt> if a value was set.
+     */
+    public IgniteClientFuture<Boolean> putIfAbsentAsync(K key, V val) throws 
ClientException;
+
     /**
      * Clears the contents of the cache.
      */
     public void clear() throws ClientException;
 
+    /**
+     * Clears the contents of the cache.

Review comment:
       Fixed




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to