public final class InMemoryStreamConsumerFactory extends Object implements StreamConsumerFactory
| Constructor and Description |
|---|
InMemoryStreamConsumerFactory(QueueClientFactory queueClientFactory,
InMemoryQueueService queueService) |
| Modifier and Type | Method and Description |
|---|---|
StreamConsumer |
create(Id.Stream streamId,
String namespace,
ConsumerConfig consumerConfig)
Creates a
StreamConsumer. |
void |
dropAll(Id.Stream streamId,
String namespace,
Iterable<Long> groupIds)
Deletes all consumer states for the given namespace and group ids.
|
@Inject public InMemoryStreamConsumerFactory(QueueClientFactory queueClientFactory, InMemoryQueueService queueService)
public StreamConsumer create(Id.Stream streamId, String namespace, ConsumerConfig consumerConfig) throws IOException
StreamConsumerFactoryStreamConsumer.create in interface StreamConsumerFactorystreamId - Id of the streamnamespace - application namespace for the state table.consumerConfig - consumer configuration.StreamConsumer.IOExceptionpublic void dropAll(Id.Stream streamId, String namespace, Iterable<Long> groupIds) throws IOException
StreamConsumerFactorydropAll in interface StreamConsumerFactorystreamId - Id of the streamnamespace - application namespace for the state table.groupIds - set of group id that needs to have states cleared.IOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.