Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2656

Prefer execute() over submit() if the returned Future is ignored

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.5.0
    • None

    Description

      Future submit(Runnable) and void execute(Runnable) in ExecutorService have the same result. If the returned Future is ignored, execute can be used instead of submit to avoid creating some objects.

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m