mirror of
https://github.com/corda/corda.git
synced 2025-01-09 14:33:30 +00:00
14 lines
346 B
Java
14 lines
346 B
Java
package java.util.concurrent;
|
|
|
|
public interface CompletionService<T> {
|
|
public Future<T> submit(Callable<T> task);
|
|
|
|
public Future<T> submit(Runnable task, T result);
|
|
|
|
public Future<T> take() throws InterruptedException;
|
|
|
|
public Future<T> poll();
|
|
|
|
public Future<T> poll(long timeout, TimeUnit unit) throws InterruptedException;
|
|
}
|