@Internal public class TopicMetadataListener extends Object implements Serializable, Closeable
| Constructor and Description |
|---|
TopicMetadataListener() |
TopicMetadataListener(List<String> topics) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
availableTopics()
Return all the available topic partitions.
|
void |
close() |
void |
open(SinkConfiguration sinkConfiguration,
org.apache.flink.api.common.operators.ProcessingTimeService timeService)
Register the topic metadata update in process time service.
|
public void open(SinkConfiguration sinkConfiguration, org.apache.flink.api.common.operators.ProcessingTimeService timeService)
public List<String> availableTopics()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.