use of io.zeebe.broker.system.log.PendingPartitionsIndex in project zeebe by zeebe-io.
the class CreateTopicStreamProcessorTest method buildStreamProcessor.
protected TypedStreamProcessor buildStreamProcessor(TypedStreamEnvironment env) {
final TopicsIndex topicsIndex = new TopicsIndex();
final PendingPartitionsIndex partitionsIndex = new PendingPartitionsIndex();
checkPartitionsCmd = new ResolvePendingPartitionsCommand(partitionsIndex, partitionManager, env.buildStreamReader(), env.buildStreamWriter());
streamProcessor = SystemPartitionManager.buildTopicCreationProcessor(env, partitionManager, topicsIndex, partitionsIndex, CREATION_EXPIRATION, () -> {
});
return streamProcessor;
}
Aggregations