Class GridgoConnectorSink

  • All Implemented Interfaces:
    io.gridgo.utils.helper.Loggable, java.io.Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, org.apache.flink.streaming.api.functions.sink.SinkFunction<io.gridgo.framework.support.Message>

    public class GridgoConnectorSink
    extends org.apache.flink.streaming.api.functions.sink.RichSinkFunction<io.gridgo.framework.support.Message>
    implements io.gridgo.utils.helper.Loggable
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.sink.SinkFunction

        org.apache.flink.streaming.api.functions.sink.SinkFunction.Context<T extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      GridgoConnectorSink​(java.lang.String endpoint)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void invoke​(io.gridgo.framework.support.Message entity)  
      void open​(org.apache.flink.configuration.Configuration parameters)  
      • Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction

        getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.gridgo.utils.helper.Loggable

        getLogger, getLogger
      • Methods inherited from interface org.apache.flink.streaming.api.functions.sink.SinkFunction

        invoke
    • Constructor Detail

      • GridgoConnectorSink

        public GridgoConnectorSink​(java.lang.String endpoint)
    • Method Detail

      • invoke

        public void invoke​(io.gridgo.framework.support.Message entity)
                    throws java.lang.Exception
        Specified by:
        invoke in interface org.apache.flink.streaming.api.functions.sink.SinkFunction<io.gridgo.framework.support.Message>
        Throws:
        java.lang.Exception
      • open

        public void open​(org.apache.flink.configuration.Configuration parameters)
                  throws java.lang.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:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.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:
        java.lang.Exception