ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [35/53] [abbrv] ignite git commit: ignite-4535 : Javadoc.
Date Mon, 10 Apr 2017 15:55:42 GMT
ignite-4535 : Javadoc.


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

Branch: refs/heads/ignite-3477-master
Commit: 3b5a74585eb9e5f236fc09e89a2c9e014f4444e7
Parents: ac87207
Author: Ilya Lantukh <ilantukh@gridgain.com>
Authored: Thu Apr 6 17:16:55 2017 +0300
Committer: Ilya Lantukh <ilantukh@gridgain.com>
Committed: Thu Apr 6 17:16:55 2017 +0300

----------------------------------------------------------------------
 .../ignite/configuration/CacheConfiguration.java       | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/3b5a7458/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java
b/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java
index 4f8f3cf..0a5cd3d 100644
--- a/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java
+++ b/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java
@@ -540,12 +540,21 @@ public class CacheConfiguration<K, V> extends MutableConfiguration<K,
V> {
         return this;
     }
 
+    /**
+     * @return On-heap cache enabled flag.
+     */
     public boolean isOnheapCacheEnabled() {
         return onheapCache;
     }
 
-    public CacheConfiguration<K, V> setOnheapCacheEnabled(boolean value) {
-        this.onheapCache = value;
+    /**
+     * Configures on-heap cache.
+     *
+     * @param onheapCache {@code True} if on-heap cache should be enabled.
+     * @return {@code this} for chaining.
+     */
+    public CacheConfiguration<K, V> setOnheapCacheEnabled(boolean onheapCache) {
+        this.onheapCache = onheapCache;
 
         return this;
     }


Mime
View raw message