new DatabusV2ConsumerRegistration(sdccMockConsumer, sources, null);
List<DatabusV2ConsumerRegistration> allRegistrations = Arrays.asList(consumerReg);
final ConsumerCallbackStats callbackStats = new ConsumerCallbackStats(0, "test", "test", true, false, null);
final UnifiedClientStats unifiedStats = new UnifiedClientStats(0, "test", "test.unified");
MultiConsumerCallback callback =
new MultiConsumerCallback(allRegistrations,
Executors.newFixedThreadPool(2),
100, // 100 ms budget
new StreamConsumerCallbackFactory(callbackStats, unifiedStats),
callbackStats,
unifiedStats,
null,
null);
callback.setSourceMap(sourcesMap);
List<DatabusSubscription> subs = DatabusSubscription.createSubscriptionList(sources);
final RelayDispatcher dispatcher =
new RelayDispatcher("dispatcher", _genericRelayConnStaticConfig, subs,
new InMemoryPersistenceProvider(),
destEventsBuf, callback, null,null,null,null,null);