Class PubSubSink<IN>

  • Type Parameters:
    IN - type of PubSubSink messages to write
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, org.apache.flink.streaming.api.checkpoint.CheckpointedFunction, org.apache.flink.streaming.api.functions.sink.SinkFunction<IN>

    public class PubSubSink<IN>
    extends org.apache.flink.streaming.api.functions.sink.RichSinkFunction<IN>
    implements org.apache.flink.streaming.api.checkpoint.CheckpointedFunction
    A sink function that outputs to PubSub.
    See Also:
    Serialized Form
    • Method Detail

      • open

        public void open​(org.apache.flink.configuration.Configuration configuration)
                  throws Exception
        Specified by:
        open in interface org.apache.flink.api.common.functions.RichFunction
        Overrides:
        open in class org.apache.flink.api.common.functions.AbstractRichFunction
        Throws:
        Exception
      • close

        public void close()
                   throws Exception
        Specified by:
        close in interface org.apache.flink.api.common.functions.RichFunction
        Overrides:
        close in class org.apache.flink.api.common.functions.AbstractRichFunction
        Throws:
        Exception
      • invoke

        public void invoke​(IN message,
                           org.apache.flink.streaming.api.functions.sink.SinkFunction.Context context)
        Specified by:
        invoke in interface org.apache.flink.streaming.api.functions.sink.SinkFunction<IN>
      • snapshotState

        public void snapshotState​(org.apache.flink.runtime.state.FunctionSnapshotContext context)
                           throws Exception
        Specified by:
        snapshotState in interface org.apache.flink.streaming.api.checkpoint.CheckpointedFunction
        Throws:
        Exception
      • initializeState

        public void initializeState​(org.apache.flink.runtime.state.FunctionInitializationContext context)
        Specified by:
        initializeState in interface org.apache.flink.streaming.api.checkpoint.CheckpointedFunction