Details
-
Enhancement
-
Resolution: Unresolved
-
Major
-
None
-
5.1.2.FINAL
-
None
Description
The timeout for cache.getAdvancedCache().lock(Key) is determined by LockAcquisitionTimeout which is set for the entire cache.https://docs.jboss.org/author/display/ISPN/Configuring+cache+programmatically.
It makes the timeout a property of cached objects and the same across the entire cache. It seems that it would make sense to consider timeout as property of operations performed on the cache objects, not the objects. So it would be up to a caller to specify the timeout, similarly to standard "tryLock(long, TimeUnit)" functionality.
I set priority "Major" because a client has one shot only. If it cannot acquire the lock then the entire transaction fails