Skip to content

Commit

Permalink
Fix line terminations and dupe links
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverhowell committed Oct 11, 2024
1 parent b0d0cbe commit 6caea9e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/modules/clients/pages/java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,7 @@ ClientConfig clientConfig = new ClientConfig();
ClientNetworkConfig networkConfig = clientConfig.getNetworkConfig();
networkConfig.getClusterRoutingConfig().setRoutingMode(RoutingMode.ALL_MEMBERS);
----
--
====

**Client SINGLE_MEMBER routing**
Expand Down Expand Up @@ -1396,6 +1397,7 @@ ClientConfig clientConfig = new ClientConfig();
ClientNetworkConfig networkConfig = clientConfig.getNetworkConfig();
networkConfig.getClusterRoutingConfig().setRoutingMode(RoutingMode.SINGLE_MEMBER);
----
--
====

**Client MULTI_MEMBER routing**
Expand Down Expand Up @@ -1465,6 +1467,7 @@ networkConfig.getClusterRoutingConfig().setRoutingMode(RoutingMode.MULTI_MEMBER)
// PARTITION_GROUPS is the default strategy, so it does not need to be explicitly defined
networkConfig.getClusterRoutingConfig().setRoutingStrategy(RoutingStrategy.PARTITION_GROUPS);
----
--
====

TIP: If you are using the `smart` or `unisocket` client operation modes, select **5.4** from the version picker above the navigation pane to see the configuration information. The cluster routing mode described above must not be present in your configuration.
Expand Down Expand Up @@ -1808,7 +1811,7 @@ the client will not be able to reach the members.

Hazelcast provides the following client services.

==== Use distributed executor service
=== Use distributed executor service

The distributed executor service is for distributed computing.
It can be used to execute tasks on the cluster on a designated partition or on all the partitions.
Expand All @@ -1822,7 +1825,7 @@ After getting an instance of `IExecutorService`, you can use the instance as
the interface with the one provided on the server side. See
xref:computing:distributed-computing.adoc[] for detailed usage.

==== Listen to client connections
=== Listen to client connections

If you need to track clients and want to listen to their connection events,
you can use the `clientConnected()` and `clientDisconnected()` methods of the `ClientService` class.
Expand All @@ -1833,7 +1836,7 @@ This class must be run on the **member** side. The following code shows an examp
include::ROOT:example$/clients/ListeningClients.java[tag=lc]
----

==== Find the partition of a key
=== Find the partition of a key

You use the partition service to find the partition of a key.
It returns all partitions. See the example code below:
Expand All @@ -1849,7 +1852,7 @@ Partition partition = partitionService.getPartition(key);
Set<Partition> partitions = partitionService.getPartitions();
----

==== Handling Lifecycle
=== Handling Lifecycle

Lifecycle handling performs:

Expand Down

0 comments on commit 6caea9e

Please sign in to comment.