I am using client-server Gemfire architecture, several servers share a replicated region with "global" scope.
I have a client, where a client region is defined as follows:
<gfe:client-region id="regionId" name="regionName" shortcut="CACHING_PROXY" />
This client region serves as a proxy for the global region on the servers.
Now, I would like to lock the region from my client while performing some operations so that no other client is able to modify it while the first client is preforming some critical task.
Lock regionLock = clientRegion.getRegionDistributedLock();
Unfortunately I get an exception:
java.lang.IllegalStateException: Only supported for GLOBAL scope, not LOCAL
So, is there any way to lock a region from the client side?