Uploaded image for project: 'infrautils'
  1. infrautils
  2. INFRAUTILS-60

JobCoordinator key Object instead String

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 1.9.0
    • None
    • None
    • None

      GENIUS-237 hit an issue of apparent excessive toString(), and turns out to be due to be just because JobCoordinator's enqueueJob() requires a String key argument.

      Looking into this see, we see that JobCoordinator's implementation doesn't actually really require a String - just a key for a Map (so that "Jobs with the same key are run sequentially. Jobs with different keys are run in parallel.")

      Why don't we therefore change the JobCoordinator API & Impl so key can be any Object instead String - that way we can save caller any "artificial" (unnecessary) toString invocations.

            rovarga Robert Varga
            vorburger Michael Vorburger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: