예제 #1
0
 /**
  * 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);
   }
 }
예제 #2
0
 /**
  * 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);
   }
 }