Nikita-tech-writer commented on a change in pull request #8532:
URL: https://github.com/apache/ignite/pull/8532#discussion_r558348736



##########
File path: 
docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/JavaThinClient.java
##########
@@ -360,6 +360,26 @@ void partitionAwareness() throws Exception {
         //end::partition-awareness[]
     }
 
+    void clientAddressFinder() throws Exception {
+        //tag::client-address-finder[]
+        ClientAddressFinder finder = () -> {
+            String[] dynamicServerAddresses = fetchServerAddresses();
+
+            return dynamicServerAddresses;
+        };
+
+        ClientConfiguration cfg = new ClientConfiguration()
+            .setAddressFinder(finder)
+            .setPartitionAwarenessEnabled(true);
+
+        try (IgniteClient client = Ignition.startClient(cfg)) {
+            ClientCache<Integer, String> cache = client.cache("myCache");
+            // Put, get or remove data from the cache...

Review comment:
       ```suggestion
               // Put, get, or remove data from the cache...
   ```




----------------------------------------------------------------
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]


Reply via email to