@InterfaceAudience.Public @InterfaceStability.Stable public interface Source<T> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
open(Map<String,Object> config,
SourceContext sourceContext)
Open connector with configuration.
|
Record<T> |
read()
Reads the next message from source.
|
closevoid open(Map<String,Object> config, SourceContext sourceContext) throws Exception
config - initialization configsourceContext - environment where the source connector is runningException - IO type exceptions when opening a connectorCopyright © 2017–2021 Apache Software Foundation. All rights reserved.