Class SimpleStringSource

java.lang.Object
de.robertmetzger.flink.utils.datagenerators.SimpleStringSource
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.streaming.api.functions.source.SourceFunction<String>

public class SimpleStringSource extends Object implements org.apache.flink.streaming.api.functions.source.SourceFunction<String>
See Also:
Serialized Form
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.source.SourceFunction

    org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    SimpleStringSource​(long sleep)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    run​(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<String> ctx)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimpleStringSource

      public SimpleStringSource(long sleep)
  • Method Details

    • run

      public void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<String> ctx) throws Exception
      Specified by:
      run in interface org.apache.flink.streaming.api.functions.source.SourceFunction<String>
      Throws:
      Exception
    • cancel

      public void cancel()
      Specified by:
      cancel in interface org.apache.flink.streaming.api.functions.source.SourceFunction<String>