@ThreadSafe public class AsyncQueue<T> extends Object
| Constructor and Description |
|---|
AsyncQueue(int targetQueueSize,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
finish() |
CompletableFuture<List<T>> |
getBatchAsync(int maxSize) |
boolean |
isFinished() |
CompletableFuture<?> |
offer(T element) |
int |
size() |
public AsyncQueue(int targetQueueSize,
Executor executor)
public int size()
public boolean isFinished()
public void finish()
public CompletableFuture<?> offer(T element)
public CompletableFuture<List<T>> getBatchAsync(int maxSize)
Copyright © 2012-2017. All Rights Reserved.