T
- the type of the datums accumulatedpublic interface Accumulator<T> extends AutoCloseable
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.