Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-1046

Avoid long to Long conversion in OrderedSafeExecutor task submit

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 4.5.0
    • None
    • None
    • Patch

    Description

      When submitting tasks to an OrderedSafeExecutor, most of the time a ledger id is being passed. Given that the method accepts and Object, the primitive long is boxed into a Long allocated on the heap.

      Added specific method overload to directly accept longs as the key in the OrderedSafeExecutor.

      Attachments

        Issue Links

          Activity

            People

              mmerli Matteo Merli
              mmerli Matteo Merli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: