Пример #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);
   }
 }