Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-1931

Externalize the 'sleepTime' field in the DefaultDatabaseLocker class.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.2.0
    • Component/s: Broker
    • Labels:
      None

      Description

      user quote:

      We need the 'sleepTime' field of the DefaultDatabaseLocker class to be externalized. We're using a custom (non-blocking) lock create statement and we need to make the sleepTime a bit longer.
      Currently there's no mechanism to change the value of this field. 1000 ms is the default and only possible value for 'sleepTime'.

      We need to have this value externalized to the JDBCPersistenceAdapter. There should be a setter in the JDBCPersistenceAdapter, so that we are able to provide a custom value for this field in our Spring context. This value should be then copied from JDBCPersistenceAdapter to the DefaultDatabaseLocker when an instance of the DefaultDatabaseLocker is created.

        Attachments

          Activity

            People

            • Assignee:
              gtully Gary Tully
              Reporter:
              gtully Gary Tully
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: