File tree Expand file tree Collapse file tree
seatunnel-api/src/main/java/org/apache/seatunnel/api/signal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818package org .apache .seatunnel .api .signal ;
1919
20+ import lombok .Getter ;
21+ import lombok .RequiredArgsConstructor ;
22+ import lombok .ToString ;
23+
24+ @ Getter
25+ @ RequiredArgsConstructor
26+ @ ToString
2027public final class FlushSignal implements Signal {
2128
2229 private final long jobId ;
@@ -26,25 +33,4 @@ public final class FlushSignal implements Signal {
2633 public static FlushSignal of (long jobId , long taskId ) {
2734 return new FlushSignal (jobId , taskId , System .currentTimeMillis ());
2835 }
29-
30- public FlushSignal (long jobId , long taskId , long createdTime ) {
31- this .jobId = jobId ;
32- this .taskId = taskId ;
33- this .createdTime = createdTime ;
34- }
35-
36- @ Override
37- public long getJobId () {
38- return jobId ;
39- }
40-
41- @ Override
42- public long getTaskId () {
43- return taskId ;
44- }
45-
46- @ Override
47- public long getCreatedTime () {
48- return createdTime ;
49- }
5036}
Original file line number Diff line number Diff line change 1717
1818package org .apache .seatunnel .api .signal ;
1919
20+ import java .io .Serializable ;
21+
2022/**
2123 * Interface for control-plane signals that the engine propagates through the data flow.
2224 *
3739 * <p>Concrete signals should be small and immutable. New signal types are added by introducing new
3840 * implementations of this interface; the engine routes them by type via {@code instanceof}.
3941 */
40- public interface Signal {
42+ public interface Signal extends Serializable {
4143
4244 /** @return the id of the job that created this signal. */
4345 long getJobId ();
You can’t perform that action at this time.
0 commit comments