public class DynamicPartitionConnections extends Object
Constructor and Description |
---|
DynamicPartitionConnections(KafkaConfig config,
IBrokerReader brokerReader) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
kafka.javaapi.consumer.SimpleConsumer |
getConnection(Partition partition) |
kafka.javaapi.consumer.SimpleConsumer |
register(Broker host,
String topic,
int partition) |
kafka.javaapi.consumer.SimpleConsumer |
register(Partition partition) |
void |
unregister(Broker port,
String topic,
int partition) |
void |
unregister(Partition partition) |
public DynamicPartitionConnections(KafkaConfig config, IBrokerReader brokerReader)
public kafka.javaapi.consumer.SimpleConsumer register(Partition partition)
public kafka.javaapi.consumer.SimpleConsumer register(Broker host, String topic, int partition)
public kafka.javaapi.consumer.SimpleConsumer getConnection(Partition partition)
public void unregister(Partition partition)
public void clear()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.