concept company in category apache pulsar

appears as: The compy, compy
Apache Pulsar in Action

This is an excerpt from Manning's book Apache Pulsar in Action.

Listing 5.12 The Pulsar Sink Interface
package org.apache.pulsar.io.core;
 
public interface Sink<T> extends AutoCloseable {
    /**
     * Open connector with configuration
     *
     * @param config initialization config
     * @param sinkContext
     * @throws Exception IO type exceptions when opening a connector
     */
    void open(final Map<String, Object> config, 
              SinkContext sinkContext) throws Exception;
 
    /**
     * Write a message to Sink
     * @param inputRecordContext Context of input record from the source
     * @param record record to write to sink
     * @throws Exception
     */
    void write(Record<T> record) throws Exception;
}