use of co.cask.cdap.data2.transaction.stream.QueueToStreamConsumer in project cdap by caskdata.
the class InMemoryStreamConsumerFactory method create.
@Override
public StreamConsumer create(StreamId streamId, String namespace, ConsumerConfig consumerConfig) throws IOException {
QueueName queueName = QueueName.fromStream(streamId);
QueueConsumer consumer = queueClientFactory.createConsumer(queueName, consumerConfig, -1);
return new QueueToStreamConsumer(streamId, consumerConfig, consumer);
}
Aggregations