I tried both spring configuration and system property but none seem to help in this scenario.
We finally decided to implement Gemfire request asynchronously with a timeout on the client side partly because we want the gemfire request to succeed irrespective of the time it takes.