By default setPRSingleHopEnabled is
true
in which case the client is aware of the
location of partitions on servers hosting
Region with
org.apache.geode.cache.DataPolicy#PARTITION. Using this information, the client routes
the client cache operations directly to the server which is hosting the required partition for
the cache operation using a single network hop. This mode works best when
#setPoolMaxConnections(int) is set to
-1
which is the default. This mode
causes the client to have more connections to the servers.
If setPRSingleHopEnabled is false
the client may need to do an extra network hop
on servers to go to the required partition for that cache operation. The client will use fewer
network connections to the servers.
Caution: for
org.apache.geode.cache.DataPolicy#PARTITION regions with
org.apache.geode.cache.PartitionAttributesFactory#setLocalMaxMemory(int) equal to zero, no cache operations mentioned above will be routed to those
servers as they do not host any partitions.