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 addedServiceException
void close() throws ServiceException
close
in interface AutoCloseable
ServiceException
Copyright © 2016 The Apache Software Foundation. All rights reserved.