ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [67/92] [abbrv] incubator-ignite git commit: IGNITE-51 Fixed javadoc CacheInterceptor.
Date Fri, 06 Mar 2015 10:14:43 GMT
IGNITE-51 Fixed javadoc CacheInterceptor.


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

Branch: refs/heads/ignite-user-req
Commit: 0219f3e0e7d06baf8ec07a62ab5901079b4c61b8
Parents: 9b92c3d
Author: nikolay_tikhonov <ntikhonov@gridgain.com>
Authored: Thu Mar 5 16:53:09 2015 +0300
Committer: nikolay_tikhonov <ntikhonov@gridgain.com>
Committed: Thu Mar 5 16:53:09 2015 +0300

----------------------------------------------------------------------
 .../apache/ignite/cache/CacheInterceptor.java    | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0219f3e0/modules/core/src/main/java/org/apache/ignite/cache/CacheInterceptor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/CacheInterceptor.java b/modules/core/src/main/java/org/apache/ignite/cache/CacheInterceptor.java
index 2484cb3..7e0d53e 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/CacheInterceptor.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/CacheInterceptor.java
@@ -17,6 +17,7 @@
 
 package org.apache.ignite.cache;
 
+import org.apache.ignite.*;
 import org.apache.ignite.configuration.*;
 import org.apache.ignite.internal.processors.cache.*;
 import org.apache.ignite.lang.*;
@@ -38,7 +39,7 @@ import javax.cache.*;
  */
 public interface CacheInterceptor<K, V> {
     /**
-     * This method is called within {@link CacheProjection#get(Object)}
+     * This method is called within {@link IgniteCache#get(Object)}
      * and similar operations to provide control over returned value.
      * <p>
      * If this method returns {@code null}, then {@code get()} operation
@@ -54,7 +55,7 @@ public interface CacheInterceptor<K, V> {
     @Nullable public V onGet(K key, @Nullable V val);
 
     /**
-     * This method is called within {@link CacheProjection#put(Object, Object, IgnitePredicate[])}
+     * This method is called within {@link IgniteCache#put(Object, Object)}
      * and similar operations before new value is stored in cache.
      * <p>
      * Implementations should not execute any complex logic,
@@ -64,10 +65,10 @@ public interface CacheInterceptor<K, V> {
      * <p>
      * This method should not throw any exception.
      *
-     * @param entry Old entry.
+     * @param entry Old entry. If {@link CacheConfiguration#isCopyOnGet()} is {@code true},
then is copy.
      * @param newVal New value.
      * @return Value to be put to cache. Returning {@code null} cancels the update.
-     * @see CacheProjection#put(Object, Object, IgnitePredicate[])
+     * @see IgniteCache#put(Object, Object)
      */
     @Nullable public V onBeforePut(Cache.Entry<K, V> entry, V newVal);
 
@@ -81,12 +82,12 @@ public interface CacheInterceptor<K, V> {
      * <p>
      * This method should not throw any exception.
      *
-     * @param entry Current entry.
+     * @param entry Current entry. If {@link CacheConfiguration#isCopyOnGet()} is {@code
true} then is copy.
      */
     public void onAfterPut(Cache.Entry<K, V> entry);
 
     /**
-     * This method is called within {@link CacheProjection#remove(Object, IgnitePredicate[])}
+     * This method is called within {@link IgniteCache#remove(Object)}
      * and similar operations to provide control over returned value.
      * <p>
      * Implementations should not execute any complex logic,
@@ -96,11 +97,11 @@ public interface CacheInterceptor<K, V> {
      * <p>
      * This method should not throw any exception.
      *
-     * @param entry Old entry.
+     * @param entry Old entry. If {@link CacheConfiguration#isCopyOnGet()} is {@code true}
then is copy.
      * @return Tuple. The first value is the flag whether remove should be cancelled or not.
      *      The second is the value to be returned as result of {@code remove()} operation,
      *      may be {@code null}.
-     * @see CacheProjection#remove(Object, IgnitePredicate[])
+     * @see IgniteCache#remove(Object)
      */
     @Nullable public IgniteBiTuple<Boolean, V> onBeforeRemove(Cache.Entry<K, V>
entry);
 
@@ -114,7 +115,7 @@ public interface CacheInterceptor<K, V> {
      * <p>
      * This method should not throw any exception.
      *
-     * @param entry Removed entry.
+     * @param entry Removed entry. If {@link CacheConfiguration#isCopyOnGet()} is {@code
true} then is copy.
      */
     public void onAfterRemove(Cache.Entry<K, V> entry);
 }


Mime
View raw message