Package org.apache.pulsar.io.core
Interface Sink<T>
- All Superinterfaces:
AutoCloseable
Generic sink interface users can implement to run Sink on top of Pulsar Functions.
-
Method Summary
Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
open
Open connector with configuration.- Parameters:
config- initialization configsinkContext- environment where the sink connector is running- Throws:
Exception- IO type exceptions when opening a connector
-
write
Write a message to Sink.- Parameters:
record- record to write to sink- Throws:
Exception
-