how to set hazelcast operation timeout in java client

427 views
Skip to first unread message

pre...@gmail.com

unread,
Sep 8, 2014, 1:45:05 PM9/8/14
to haze...@googlegroups.com
Hi, 

I have a Spring application that is the client of Hazelcast cluster. The cluster holds shared Map and Set data structures. I would like to configure read/write timeouts for Spring client so that in cases where hazelcast is slow, I would like the Spring application to timeout and handle the event as desired.

Currently , I have tried two methods (one at a time) . Both cases don't seem to work although the timeout is set as low as 10milliseconds. 

1> Declarative configuration 

<hz:hazelcast id="hazelcastOperationTimeout">

  <hz:config>

  <hz:properties>

  <hz:property name="hazelcast.max.operation.timeout">10</hz:property>

  </hz:properties>

  </hz:config>

  </hz:hazelcast>


2> JVM argument

-Dhazelcast.max.operation.timeout=10


Any help on asserting that am using the correct property is greatly appreciate and as well as thoughts on testing.



Thanks,

Pradeep

P.S. reference used : https://groups.google.com/forum/#!searchin/hazelcast/set$20map$20timeout/hazelcast/UUuTYJ45idU/JSEfAEbt3H4J



Reply all
Reply to author
Forward
0 new messages