Setting Cache Timeouts

Cache timeout properties are declared in the cache.xml file and can also be set through methods of the interface, com.gemstone.gemfire.cache.Cache.

The next two attributes describe timeout settings for locking in regions with global scope. Locking operations can time out in two places: when waiting to obtain a lock (lock time out); and when holding a lock (lock lease time). Operations that modify objects in a global region use automatic locking. In addition, you can manually lock a global region and its entries through com.gemstone.gemfire.cache.Region. The explicit lock methods provided by the APIs allow you to specify a lock timeout parameter. The lock time out for implicit operations and the lock lease time for implicit and explicit operations are governed by these cache-wide parameter settings: