T - the type of the datums accumulatedpublic interface Accumulator<T> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
add(T datum)
Add the given datum to this.
|
void |
close() |
void add(T datum) throws ServiceException
datum - the datum to be addedServiceExceptionvoid close() throws ServiceException
close in interface AutoCloseableServiceExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.