1 package dst.ass3.event;
3 import org.apache.flink.api.common.functions.RichFunction;
4 import org.apache.flink.configuration.Configuration;
5 import org.apache.flink.streaming.api.functions.source.SourceFunction;
7 import dst.ass3.event.model.domain.IUploadEventInfo;
10 * A RichFunction & SourceFunction for IUploadEventInfo objects.
12 public interface IEventSourceFunction extends RichFunction, SourceFunction<IUploadEventInfo> {
15 void open(Configuration parameters) throws Exception;
18 void close() throws Exception;
21 void run(SourceContext<IUploadEventInfo> ctx) throws Exception;