nizhikov commented on a change in pull request #6837: IGNITE-10223: affinity
list methods are added, tests are changed
URL: https://github.com/apache/ignite/pull/6837#discussion_r323631691
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/affinity/GridCacheAffinityProxy.java
##########
@@ -221,24 +222,44 @@ public GridCacheAffinityProxy(GridCacheContext<K, V>
cctx, Affinity<K> delegate)
}
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ *
+ * @deprecated use {@link
GridCacheAffinityProxy#mapKeyToPrimaryAndBackupsList(Object)} instead.
+ */
+ @Deprecated
@Override public Collection<ClusterNode> mapKeyToPrimaryAndBackups(K key) {
+ return mapKeyToPrimaryAndBackupsList(key);
+ }
+
+ /** {@inheritDoc} */
+ @Override public List<ClusterNode> mapKeyToPrimaryAndBackupsList(K key) {
CacheOperationContext old = gate.enter(null);
try {
- return delegate.mapKeyToPrimaryAndBackups(key);
+ return delegate.mapKeyToPrimaryAndBackupsList(key);
}
finally {
gate.leave(old);
}
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ *
+ * @deprecated use {@link
GridCacheAffinityProxy#mapKeyToPrimaryAndBackupsList(Object)} instead.
Review comment:
This should start with the capital letter.
----------------------------------------------------------------
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]
With regards,
Apache Git Services