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

dspavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 37ce7189126 IGNITE-29010 Document Java thin client cache partitions 
(#13516)
37ce7189126 is described below

commit 37ce7189126ad7ae68dbf3ef37bf10470c93a895
Author: ignitetcbot <[email protected]>
AuthorDate: Wed Aug 26 12:53:00 2026 +0300

    IGNITE-29010 Document Java thin client cache partitions (#13516)
    
    codex co authored by dpavlov
---
 .../java/src/main/java/org/apache/ignite/snippets/JavaThinClient.java | 2 ++
 docs/_docs/thin-clients/java-thin-client.adoc                         | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/JavaThinClient.java
 
b/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/JavaThinClient.java
index f8ec3b224b1..d6eade88077 100644
--- 
a/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/JavaThinClient.java
+++ 
b/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/JavaThinClient.java
@@ -43,6 +43,7 @@ import org.apache.ignite.cache.query.QueryCursor;
 import org.apache.ignite.cache.query.ScanQuery;
 import org.apache.ignite.cache.query.SqlFieldsQuery;
 import org.apache.ignite.client.ClientAddressFinder;
+import org.apache.ignite.client.ClientAffinityConfiguration;
 import org.apache.ignite.client.ClientAuthenticationException;
 import org.apache.ignite.client.ClientCache;
 import org.apache.ignite.client.ClientCacheConfiguration;
@@ -166,6 +167,7 @@ public class JavaThinClient {
         // tag::getOrCreateCache[]
         ClientCacheConfiguration cacheCfg = new 
ClientCacheConfiguration().setName("References")
                 .setCacheMode(CacheMode.REPLICATED)
+                .setAffinityConfiguration(new 
ClientAffinityConfiguration().setPartitions(64))
                 
.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
 
         ClientCache<Integer, String> cache = client.getOrCreateCache(cacheCfg);
diff --git a/docs/_docs/thin-clients/java-thin-client.adoc 
b/docs/_docs/thin-clients/java-thin-client.adoc
index 20783b5535a..40776e91377 100644
--- a/docs/_docs/thin-clients/java-thin-client.adoc
+++ b/docs/_docs/thin-clients/java-thin-client.adoc
@@ -170,6 +170,8 @@ The `ClientCache` interface provides the key-value API. You 
can use the followin
 
 Use `IgniteClient.cacheNames()` to list all existing caches.
 
+When creating a cache with `ClientCacheConfiguration`, use 
`ClientAffinityConfiguration` to configure the default rendezvous affinity 
settings, such as the number of cache partitions.
+
 [source, java]
 -------------------------------------------------------------------------------
 include::{sourceCodeFile}[tag=getOrCreateCache,indent=0]
@@ -211,7 +213,7 @@ The query condition is specified by an 
`IgniteBiPredicate<K, V>` object that is
 
 NOTE: The classes of the predicates must be available on the server nodes of 
the cluster.
 
-The results of the query are transferred to the client page by page. Each page 
contains a specific number of entries and is fetched to the client only when 
the entries from that page are requested. To change the number of entries in a 
page, use the `ScanQuery.setPageSize(int pageSize)` method (default value is 
1024).
+The results of the query are transferred to the client page by page. Each page 
contains a specific number of entries and is fetched to the client only when 
the entries from a page are requested. To change the number of entries in a 
page, use the `ScanQuery.setPageSize(int pageSize)` method (default value is 
1024).
 
 [source, java]
 -------------------------------------------------------------------------------

Reply via email to