Class Plc4xSourceTask

  • All Implemented Interfaces:
    org.apache.kafka.connect.connector.Task

    public class Plc4xSourceTask
    extends org.apache.kafka.connect.source.SourceTask
    Source Connector Task polling the data source at a given rate. A timer thread is scheduled which sets the fetch flag to true every rate milliseconds. When poll() is invoked, the calling thread waits until the fetch flag is set for WAIT_LIMIT_MILLIS. If the flag does not become true, the method returns null, otherwise a fetch is performed.
    • Constructor Detail

      • Plc4xSourceTask

        public Plc4xSourceTask()
    • Method Detail

      • version

        public String version()
      • start

        public void start​(Map<String,​String> props)
        Specified by:
        start in interface org.apache.kafka.connect.connector.Task
        Specified by:
        start in class org.apache.kafka.connect.source.SourceTask
      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.kafka.connect.connector.Task
        Specified by:
        stop in class org.apache.kafka.connect.source.SourceTask
      • poll

        public List<org.apache.kafka.connect.source.SourceRecord> poll()
        Specified by:
        poll in class org.apache.kafka.connect.source.SourceTask