Search in sources :

Example 1 with QueueToStreamConsumer

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);
}
Also used : QueueConsumer(co.cask.cdap.data2.queue.QueueConsumer) QueueName(co.cask.cdap.common.queue.QueueName) QueueToStreamConsumer(co.cask.cdap.data2.transaction.stream.QueueToStreamConsumer)

Aggregations

QueueName (co.cask.cdap.common.queue.QueueName)1 QueueConsumer (co.cask.cdap.data2.queue.QueueConsumer)1 QueueToStreamConsumer (co.cask.cdap.data2.transaction.stream.QueueToStreamConsumer)1