use of io.zeebe.broker.system.log.PartitionEvent in project zeebe by zeebe-io.
the class RequestPartitionsStreamProcessorTest method partitionCreated.
protected static PartitionEvent partitionCreated(String topicName, int partitionId) {
final PartitionEvent partitionEvent = new PartitionEvent();
partitionEvent.setId(partitionId);
partitionEvent.setTopicName(BufferUtil.wrapString(topicName));
partitionEvent.setState(PartitionState.CREATED);
partitionEvent.setCreator(BufferUtil.wrapString("foo"), 123);
return partitionEvent;
}
Aggregations