This is an automated email from the ASF dual-hosted git repository.

nizhikov pushed a commit to branch ignite-2.12
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit 406760ca4523adafb9078e91758af06cc4de4b76
Author: Nikolay <nizhi...@apache.org>
AuthorDate: Fri Oct 22 13:53:28 2021 +0300

    IGNITE-15764 CacheConfiguration#rebalanceDelay deprecated for removal 
(#9514)
---
 docs/_docs/data-rebalancing.adoc                                      | 4 ++++
 modules/core/src/main/java/org/apache/ignite/IgniteCache.java         | 2 ++
 .../main/java/org/apache/ignite/configuration/CacheConfiguration.java | 4 ++++
 3 files changed, 10 insertions(+)

diff --git a/docs/_docs/data-rebalancing.adoc b/docs/_docs/data-rebalancing.adoc
index 1f92807..21af78d 100644
--- a/docs/_docs/data-rebalancing.adoc
+++ b/docs/_docs/data-rebalancing.adoc
@@ -129,6 +129,10 @@ tab:C++[unsupported]
 
 The following table lists the properties of `CacheConfiguration` related to 
rebalancing:
 
+[CAUTION]
+====
+`rebalanceDelay` and related API's are deprecated and will be removed in the 
next releases.
+====
 
 [cols="1,4,1",opts="header"]
 |===
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 c12f3bb..1a6e782 100644
--- a/modules/core/src/main/java/org/apache/ignite/IgniteCache.java
+++ b/modules/core/src/main/java/org/apache/ignite/IgniteCache.java
@@ -1577,7 +1577,9 @@ public interface IgniteCache<K, V> extends 
javax.cache.Cache<K, V>, IgniteAsyncS
      * <p>
      * @return Future that will be completed when rebalancing is finished. 
Future.get() returns {@code true}
      *      when rebalance was successfully finished.
+     * @deprecated Use baseline topology feature instead. Please, be aware 
this API will be removed in the next releases.
      */
+    @Deprecated
     public IgniteFuture<Boolean> rebalance();
 
     /**
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 778ddaa..4544a43 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
@@ -1617,7 +1617,9 @@ public class CacheConfiguration<K, V> extends 
MutableConfiguration<K, V> {
      * @return Rebalancing delay, {@code 0} to start rebalancing immediately, 
{@code -1} to
      *      start rebalancing manually, or positive value to specify delay in 
milliseconds
      *      after which rebalancing should start automatically.
+     * @deprecated Use baseline topology feature instead. Please, be aware 
this API will be removed in the next releases.
      */
+    @Deprecated
     public long getRebalanceDelay() {
         return rebalanceDelay;
     }
@@ -1627,7 +1629,9 @@ public class CacheConfiguration<K, V> extends 
MutableConfiguration<K, V> {
      *
      * @param rebalanceDelay Rebalance delay to set.
      * @return {@code this} for chaining.
+     * @deprecated Use baseline topology feature instead. Please, be aware 
this API will be removed in the next releases.
      */
+    @Deprecated
     public CacheConfiguration<K, V> setRebalanceDelay(long rebalanceDelay) {
         this.rebalanceDelay = rebalanceDelay;
 

Reply via email to