public class KafkaSource<V> extends Object implements PushSource<V>
| Constructor and Description |
|---|
KafkaSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
open(Map<String,Object> config) |
void |
setConsumer(Function<Record<V>,CompletableFuture<Void>> consumeFunction) |
void |
start() |
public void open(Map<String,Object> config) throws Exception
open in interface PushSource<V>Exceptionpublic void close()
throws InterruptedException
close in interface AutoCloseableInterruptedExceptionpublic void start()
public void setConsumer(Function<Record<V>,CompletableFuture<Void>> consumeFunction)
setConsumer in interface PushSource<V>Copyright © 2017–2018 Apache Software Foundation. All rights reserved.