DatabusV2ConsumerRegistration consumerReg2 =
new DatabusV2ConsumerRegistration(sdccMockConsumer2, sources, null);
List<DatabusV2ConsumerRegistration> allRegistrations =
Arrays.asList(consumerReg, consumerReg2);
MultiConsumerCallback callback =
new MultiConsumerCallback(
allRegistrations,
Executors.newSingleThreadExecutor(),
1000,
new StreamConsumerCallbackFactory(null, null),
null,
null,
null,
null);
callback.setSourceMap(sourcesMap);
List<DatabusSubscription> subs = DatabusSubscription.createSubscriptionList(sources);
RelayDispatcher dispatcher =
new RelayDispatcher("dispatcher", _genericRelayConnStaticConfig, subs,
new InMemoryPersistenceProvider(),