- Type Parameters:
Q
- reQuest type
R
- Response type
- All Implemented Interfaces:
- java.util.concurrent.CompletionService<R>
public abstract class QueuingExecutorCompletionService<Q,R>
extends java.util.concurrent.ExecutorCompletionService<R>
This class extends the ExecutorCompletionService using a Queue of requests to operate a policy of
submitting a new request for execution after a previous request has completed. The number of
concurrent requests allowed can be specified and that number of jobs will be submitted on
construction after which the one complete, one submitted policy applies. This has the
advantage of terminating submission of requests for execution if responses stop being retrieved
from the CompletionService.
- API Status: Private - API users are discouraged from using this class as fields, method signatures, and implementation details may be subject to change