public interface StreamConsumerFactory
StreamConsumer.| 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.
|
StreamConsumer create(Id.Stream streamId, String namespace, ConsumerConfig consumerConfig) throws IOException
StreamConsumer.streamId - Id of the streamnamespace - application namespace for the state table.consumerConfig - consumer configuration.StreamConsumer.IOExceptionvoid dropAll(Id.Stream streamId, String namespace, Iterable<Long> groupIds) throws IOException
streamId - 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.