Class MultiQueueExecutor

  • All Implemented Interfaces:
    Executor, ExecutorService

    public class MultiQueueExecutor
    extends Object
    implements ExecutorService
    Executor service that allows temporary suspension of execution for a given, task submitting thread. Once block() has been called from a particular thread all following tasks submitted from this thread are queued, until flush() is called from that same thread. Some methods are not implemented completely and will throw UnsupportedOperationExceptions when called in queue-mode. Queues are not automatically flushed upon termination.
    Author:
    Hendrik Schreiber