Example usage for java.util.concurrent ExecutorCompletionService subclass-usage

List of usage examples for java.util.concurrent ExecutorCompletionService subclass-usage

Introduction

In this page you can find the example usage for java.util.concurrent ExecutorCompletionService subclass-usage.

Usage

From source file com.microsoft.tfs.core.clients.versioncontrol.internal.concurrent.AccountingCompletionService.java

/**
 * Extends {@link ExecutorCompletionService} to count the number of tasks that
 * have been submitted so they can be waited on in bulk. Each wait call (
 * {@link #waitForCompletions()} and friends) resets the count so it can be
 * called again later.
 * <p>