throw new DatabusClientException("Please specify Databus sources to be consumed: register(consumer, source1, source2, ...");
RegistrationId regId =
RegistrationIdGenerator.generateNewId(consumer.getClass().getSimpleName(),
DatabusSubscription.createSubscriptionList(Arrays.asList(sources)));
DatabusV2RegistrationImpl reg = new DatabusV2RegistrationImpl(regId,
this,
getCheckpointPersistenceProvider());
List<DatabusCombinedConsumer> consumers = new ArrayList<DatabusCombinedConsumer>();
consumers.add(consumer);
reg.addDatabusConsumers(consumers);
reg.addSubscriptions(sources);
_regList.add(reg);
reg.onRegister();
return reg;
}