Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2071

mutable managed executor services for thread pool services

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 7.1.0.Beta1
    • None
    • None
    • None

    Description

      Currently thread pool services in the threads subsystem implement Service<ExecutorService>. To improve usability, it is suggested to change them like

      BoundedQueueThreadPoolService implements Service<ExecutorService>

      becomes BoundedQueueThreadPoolService implements Service<ManagedQueueExecutorService>

      public class ManagedQueueExecutorService implements ExecutorService

      private final QueueExecutor toManage
      private final BlockingExecutorService delegate;

      // Package protected for subsys write-attribute handlers
      void setCoreThreads(int coreThreads)

      { toManage.setCoreThreads(coreThreads); }

      ... other setters, plus delegate the ExecutorService calls
      }

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            olubyans@redhat.com Alexey Loubyansky
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: