/** * Method for bulk synchronous notification of generated records to all subscribed consumers. * * @param record * @throws Exception */ public void notify(final Collection<Record> records) throws Exception { for (final RecordConsumer consumer : consumers) { consumer.consume(records); } }
/** * Method for synchronous notification of generated records to all subscribed consumers. * * @param record * @throws Exception */ public void notify(final Record record) throws Exception { for (final RecordConsumer consumer : consumers) { consumer.consume(record); } }