Dmitry Udalov created ISPN-2012:
-----------------------------------
Summary: Add ability to specify lockAcquisitionTimeout on operation basis
Key: ISPN-2012
URL:
https://issues.jboss.org/browse/ISPN-2012
Project: Infinispan
Issue Type: Feature Request
Components: Locking and Concurrency
Affects Versions: 5.1.2.FINAL
Environment: Windows 7 64-bit
Reporter: Dmitry Udalov
Assignee: Manik Surtani
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+progra....
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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira