public class DynamicPartitionConnections
extends java.lang.Object
Constructor and Description |
---|
DynamicPartitionConnections(KafkaConfig config,
IBrokerReader brokerReader) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
SimpleConsumer |
getConnection(Partition partition) |
SimpleConsumer |
register(Broker host,
java.lang.String topic,
int partition) |
SimpleConsumer |
register(Partition partition) |
void |
unregister(Broker port,
java.lang.String topic,
int partition) |
void |
unregister(Partition partition) |
public DynamicPartitionConnections(KafkaConfig config, IBrokerReader brokerReader)
public SimpleConsumer register(Partition partition)
public SimpleConsumer register(Broker host, java.lang.String topic, int partition)
public SimpleConsumer getConnection(Partition partition)
public void unregister(Broker port, java.lang.String topic, int partition)
public void unregister(Partition partition)
public void clear()