Example usage for io.netty.util.concurrent EventExecutorGroup terminationFuture

List of usage examples for io.netty.util.concurrent EventExecutorGroup terminationFuture

Introduction

In this page you can find the example usage for io.netty.util.concurrent EventExecutorGroup terminationFuture.

Prototype

Future<?> terminationFuture();

Source Link

Document

Returns the Future which is notified when all EventExecutor s managed by this EventExecutorGroup have been terminated.

Usage

From source file:org.apache.giraph.utils.ProgressableUtils.java

License:Apache License

/**
 * Wait for executorgroup to terminate, while periodically reporting progress
 *
 * @param group ExecutorGroup whose termination we are awaiting
 * @param progressable Progressable for reporting progress (Job context)
 *///from w ww  . j a va 2 s .co m
public static void awaitTerminationFuture(EventExecutorGroup group, Progressable progressable) {
    waitForever(new FutureWaitable<>(group.terminationFuture()), progressable);
}