Skip to content

Commit

Permalink
Add back LiKafkaProducer.partitionsFor() that takes a set of topics (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlee2 authored Dec 10, 2018
1 parent 1967b6b commit 756b70f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

import com.linkedin.kafka.clients.annotations.InterfaceOrigin;
import java.util.concurrent.TimeUnit;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.kafka.common.PartitionInfo;
import org.apache.kafka.clients.producer.Producer;


Expand All @@ -23,4 +27,7 @@ public interface LiKafkaProducer<K, V> extends Producer<K, V> {
*/
@InterfaceOrigin.LiKafkaClients
void flush(long timeout, TimeUnit timeUnit);

@InterfaceOrigin.LiKafkaClients
Map<String, List<PartitionInfo>> partitionsFor(Set<String> topics);
}
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ public List<PartitionInfo> partitionsFor(String topic) {
return _producer.partitionsFor(topic);
}

@Override
public Map<String, List<PartitionInfo>> partitionsFor(Set<String> topics) {
//TODO come back here when upstream API settles
throw new UnsupportedOperationException("not implemented");
Expand Down

0 comments on commit 756b70f

Please sign in to comment.