ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: #sberb-25: fix javadoc for removeAll operations.
Date Wed, 10 Jun 2015 10:19:10 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/sberb-25 f887d3d5b -> 216dc481f


#sberb-25: fix javadoc for removeAll operations.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/216dc481
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/216dc481
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/216dc481

Branch: refs/heads/sberb-25
Commit: 216dc481fdaff6ab2b5ebe598b552786d4ccb704
Parents: f887d3d
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Wed Jun 10 13:18:47 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Wed Jun 10 13:18:47 2015 +0300

----------------------------------------------------------------------
 .../java/org/apache/ignite/IgniteCache.java     | 28 +++-----------------
 .../processors/cache/IgniteInternalCache.java   |  6 +++--
 2 files changed, 7 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/216dc481/modules/core/src/main/java/org/apache/ignite/IgniteCache.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/IgniteCache.java b/modules/core/src/main/java/org/apache/ignite/IgniteCache.java
index 0d9e7e4..2b97e55 100644
--- a/modules/core/src/main/java/org/apache/ignite/IgniteCache.java
+++ b/modules/core/src/main/java/org/apache/ignite/IgniteCache.java
@@ -375,30 +375,7 @@ public interface IgniteCache<K, V> extends javax.cache.Cache<K,
V>, IgniteAsyncS
     @IgniteAsyncSupported
     @Override public V getAndReplace(K key, V val);
 
-    /**
-     * Removes entries for the specified keys.
-     * <p>
-     * The order in which the individual entries are removed is undefined.
-     * <p>
-     * For every entry in the key set, the following are called:
-     * <ul>
-     *   <li>any registered {@link CacheEntryRemovedListener}s</li>
-     *   <li>if the cache is a write-through cache, the {@link CacheWriter}</li>
-     * </ul>
-     * If the key set is empty, the {@link CacheWriter} is not called.
-     * <p>
-     * This operation is not transactional.
-     *
-     * @param keys the keys to remove
-     * @throws NullPointerException  if keys is null or if it contains a null key
-     * @throws IllegalStateException if the cache is {@link #isClosed()}
-     * @throws CacheException        if there is a problem during the remove
-     * @throws ClassCastException    if the implementation is configured to perform
-     *                               runtime-type-checking, and the key or value
-     *                               types are incompatible with those that have been
-     *                               configured for the {@link Cache}
-     * @see CacheWriter#deleteAll
-     */
+    /** {@inheritDoc} */
     @IgniteAsyncSupported
     @Override public void removeAll(Set<? extends K> keys);
 
@@ -414,7 +391,8 @@ public interface IgniteCache<K, V> extends javax.cache.Cache<K,
V>, IgniteAsyncS
      * </ul>
      * If the cache is empty, the {@link CacheWriter} is not called.
      * <p>
-     * This operation is not transactional.
+     * This operation is not transactional. It calls broadcast closure that
+     * deletes all primary keys from remote nodes.
      * <p>
      * This is potentially an expensive operation as listeners are invoked.
      * Use {@link #clear()} to avoid this.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/216dc481/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteInternalCache.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteInternalCache.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteInternalCache.java
index 941ace8..9972f92 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteInternalCache.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteInternalCache.java
@@ -1139,7 +1139,8 @@ public interface IgniteInternalCache<K, V> extends Iterable<Cache.Entry<K,
V>> {
      * <p>
      * If write-through is enabled, the values will be removed from {@link CacheStore} via
{@link IgniteDataStreamer}.
      * <h2 class="header">Transactions</h2>
-     * This method is not transactional.
+     * This method is transactional and will enlist the entry into ongoing transaction
+     * if there is one.
      *
      * @param keys Keys whose mappings are to be removed from cache.
      * @throws IgniteCheckedException If remove failed.
@@ -1151,7 +1152,8 @@ public interface IgniteInternalCache<K, V> extends Iterable<Cache.Entry<K,
V>> {
      * <p>
      * If write-through is enabled, the values will be removed from {@link CacheStore} via
{@link IgniteDataStreamer}.
      * <h2 class="header">Transactions</h2>
-     * This method is not transactional.
+     * This method is transactional and will enlist the entry into ongoing transaction
+     * if there is one.
      *
      * @param keys Keys whose mappings are to be removed from cache.
      * @return Future for the remove operation. The future will complete whenever


Mime
View raw message