Search in sources :

Example 1 with PendingPartitionsIndex

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;
}
Also used : TopicsIndex(io.zeebe.broker.system.log.TopicsIndex) ResolvePendingPartitionsCommand(io.zeebe.broker.system.log.ResolvePendingPartitionsCommand) PendingPartitionsIndex(io.zeebe.broker.system.log.PendingPartitionsIndex)

Aggregations

PendingPartitionsIndex (io.zeebe.broker.system.log.PendingPartitionsIndex)1 ResolvePendingPartitionsCommand (io.zeebe.broker.system.log.ResolvePendingPartitionsCommand)1 TopicsIndex (io.zeebe.broker.system.log.TopicsIndex)1