Package org.apache.pulsar.io.core
Interface Source<T>
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
PushSource
-
Method Summary
Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
open
Open connector with configuration.- Parameters:
config- initialization configsourceContext- environment where the source connector is running- Throws:
Exception- IO type exceptions when opening a connector
-
read
Reads the next message from source. If source does not have any new messages, this call should block.- Returns:
- next message from source. The return result should never be null
- Throws:
Exception
-