MCPcopy
hub / github.com/apache/pulsar / Sink

Interface Sink

pulsar-io/core/src/main/java/org/apache/pulsar/io/core/Sink.java:29–48  ·  view source on GitHub ↗

Generic sink interface users can implement to run Sink on top of Pulsar Functions.

Source from the content-addressed store, hash-verified

27 * Generic sink interface users can implement to run Sink on top of Pulsar Functions.
28 */
29@InterfaceAudience.Public
30@InterfaceStability.Stable
31public interface Sink<T> extends AutoCloseable {
32 /**
33 * Open connector with configuration.
34 *
35 * @param config initialization config
36 * @param sinkContext environment where the sink connector is running
37 * @throws Exception IO type exceptions when opening a connector
38 */
39 void open(Map<String, Object> config, SinkContext sinkContext) throws Exception;
40
41 /**
42 * Write a message to Sink.
43 *
44 * @param record record to write to sink
45 * @throws Exception
46 */
47 void write(Record<T> record) throws Exception;
48}

Implementers 14

SinkForTestpulsar-broker/src/test/java/org/apache
ByteBufferSinkpulsar-broker/src/test/java/org/apache
StatsNullSinkpulsar-broker/src/test/java/org/apache
TestErrorSinkpulsar-broker/src/test/java/org/apache
BatchDataGeneratorPrintSinkpulsar-io/batch-data-generator/src/mai
TestSinkpulsar-io/core/src/test/java/org/apach
DataGeneratorPrintSinkpulsar-io/data-generator/src/main/java
NopSinkpulsar-functions/utils/src/test/java/o
TestSinkConnectorpulsar-functions/instance/src/test/jav
PulsarSinkDisablepulsar-functions/instance/src/main/jav
PulsarSinkpulsar-functions/instance/src/main/jav
TestStateSinktests/docker-images/java-test-function

Calls

no outgoing calls

Tested by

no test coverage detected