Class SerialWorkDispatcher

  • All Implemented Interfaces:

    
    public class SerialWorkDispatcher<T extends Object>
    
                        

    Provides a template for processing a queue of work items serially. Allows adding new work items while the another item is being processed. Aims to separate the lifecycle of the worker thread that process work items with the queue that they are fetched from to allow sub-classes to be agnostic of worker thread management.