public interface Batcher<T> extends Closeable
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T item)
Adds a new item to be batched.
|
boolean |
add(T item,
long timeout,
TimeUnit unit)
Adds a new item to be batched.
|
boolean |
addOrWait(T item)
Adds a new item to be batched.
|
void |
close() |
boolean add(T item)
boolean add(T item, long timeout, TimeUnit unit) throws InterruptedException
InterruptedExceptionboolean addOrWait(T item) throws InterruptedException
InterruptedExceptionvoid close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2017 Calrissian. All rights reserved.