Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2012

Add ability to specify lockAcquisitionTimeout on operation basis

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 5.1.2.FINAL
    • Transactions
    • 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

      Attachments

        Activity

          People

            pruivo@redhat.com Pedro Ruivo
            dudalov_jira Dmitry Udalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: