public interface ConsumerRegistry
| Modifier and Type | Method and Description |
|---|---|
<K,V> org.apache.kafka.clients.consumer.Consumer<K,V> |
getConsumer(java.lang.String id)
Returns a managed Consumer.
|
java.util.Set<java.lang.String> |
getConsumerIds()
The IDs of the available consumers.
|
boolean |
isPaused(java.lang.String id)
Is the consumer with the given ID paused.
|
void |
pause(java.lang.String id)
Pause the consumer for the given ID.
|
void |
resume(java.lang.String id)
Resume the consumer for the given ID.
|
@Nonnull
<K,V> org.apache.kafka.clients.consumer.Consumer<K,V> getConsumer(@Nonnull
java.lang.String id)
K - The key generic typeV - The value generic typeid - The id of the producer.java.lang.IllegalArgumentException - If no consumer exists for the given ID@Nonnull java.util.Set<java.lang.String> getConsumerIds()
boolean isPaused(@Nonnull
java.lang.String id)
id - True it is pausedvoid pause(@Nonnull
java.lang.String id)
isPaused(String) method to
establish when the consumer has actually been paused.id - The id of the consumervoid resume(@Nonnull
java.lang.String id)
isPaused(String) method to
establish when the consumer has actually been resumed.id - The id of the consumer