25
25
import com .cronutils .model .definition .CronDefinitionBuilder ;
26
26
import com .cronutils .parser .CronParser ;
27
27
import com .google .common .base .Strings ;
28
- import com .uber .cadence .ChildPolicy ;
29
28
import com .uber .cadence .WorkflowIdReusePolicy ;
30
29
import com .uber .cadence .common .CronSchedule ;
31
30
import com .uber .cadence .common .MethodRetry ;
@@ -60,7 +59,6 @@ public static WorkflowOptions merge(
60
59
OptionsUtils .merge (
61
60
a .executionStartToCloseTimeoutSeconds (), o .getExecutionStartToCloseTimeout ()))
62
61
.setTaskList (OptionsUtils .merge (a .taskList (), o .getTaskList (), String .class ))
63
- .setChildPolicy (o .getChildPolicy ())
64
62
.setRetryOptions (RetryOptions .merge (methodRetry , o .getRetryOptions ()))
65
63
.setCronSchedule (OptionsUtils .merge (cronAnnotation , o .getCronSchedule (), String .class ))
66
64
.setMemo (o .getMemo ())
@@ -80,8 +78,6 @@ public static final class Builder {
80
78
81
79
private String taskList ;
82
80
83
- private ChildPolicy childPolicy ;
84
-
85
81
private RetryOptions retryOptions ;
86
82
87
83
private String cronSchedule ;
@@ -101,7 +97,6 @@ public Builder(WorkflowOptions o) {
101
97
this .taskStartToCloseTimeout = o .taskStartToCloseTimeout ;
102
98
this .executionStartToCloseTimeout = o .executionStartToCloseTimeout ;
103
99
this .taskList = o .taskList ;
104
- this .childPolicy = o .childPolicy ;
105
100
this .retryOptions = o .retryOptions ;
106
101
this .cronSchedule = o .cronSchedule ;
107
102
this .memo = o .memo ;
@@ -174,12 +169,6 @@ public Builder setTaskList(String taskList) {
174
169
return this ;
175
170
}
176
171
177
- /** Specifies how children of this workflow react to this workflow death. */
178
- public Builder setChildPolicy (ChildPolicy childPolicy ) {
179
- this .childPolicy = childPolicy ;
180
- return this ;
181
- }
182
-
183
172
public Builder setRetryOptions (RetryOptions retryOptions ) {
184
173
this .retryOptions = retryOptions ;
185
174
return this ;
@@ -215,7 +204,6 @@ public WorkflowOptions build() {
215
204
executionStartToCloseTimeout ,
216
205
taskStartToCloseTimeout ,
217
206
taskList ,
218
- childPolicy ,
219
207
retryOptions ,
220
208
cronSchedule ,
221
209
memo ,
@@ -262,7 +250,6 @@ public WorkflowOptions validateBuildWithDefaults() {
262
250
roundUpToSeconds (
263
251
taskStartToCloseTimeout , OptionsUtils .DEFAULT_TASK_START_TO_CLOSE_TIMEOUT ),
264
252
taskList ,
265
- childPolicy ,
266
253
retryOptions ,
267
254
cronSchedule ,
268
255
memo ,
@@ -280,8 +267,6 @@ public WorkflowOptions validateBuildWithDefaults() {
280
267
281
268
private final String taskList ;
282
269
283
- private final ChildPolicy childPolicy ;
284
-
285
270
private RetryOptions retryOptions ;
286
271
287
272
private String cronSchedule ;
@@ -296,7 +281,6 @@ private WorkflowOptions(
296
281
Duration executionStartToCloseTimeout ,
297
282
Duration taskStartToCloseTimeout ,
298
283
String taskList ,
299
- ChildPolicy childPolicy ,
300
284
RetryOptions retryOptions ,
301
285
String cronSchedule ,
302
286
Map <String , Object > memo ,
@@ -306,7 +290,6 @@ private WorkflowOptions(
306
290
this .executionStartToCloseTimeout = executionStartToCloseTimeout ;
307
291
this .taskStartToCloseTimeout = taskStartToCloseTimeout ;
308
292
this .taskList = taskList ;
309
- this .childPolicy = childPolicy ;
310
293
this .retryOptions = retryOptions ;
311
294
this .cronSchedule = cronSchedule ;
312
295
this .memo = memo ;
@@ -333,10 +316,6 @@ public String getTaskList() {
333
316
return taskList ;
334
317
}
335
318
336
- public ChildPolicy getChildPolicy () {
337
- return childPolicy ;
338
- }
339
-
340
319
public RetryOptions getRetryOptions () {
341
320
return retryOptions ;
342
321
}
@@ -363,7 +342,6 @@ public boolean equals(Object o) {
363
342
&& Objects .equals (executionStartToCloseTimeout , that .executionStartToCloseTimeout )
364
343
&& Objects .equals (taskStartToCloseTimeout , that .taskStartToCloseTimeout )
365
344
&& Objects .equals (taskList , that .taskList )
366
- && childPolicy == that .childPolicy
367
345
&& Objects .equals (retryOptions , that .retryOptions )
368
346
&& Objects .equals (cronSchedule , that .cronSchedule )
369
347
&& Objects .equals (memo , that .memo )
@@ -378,7 +356,6 @@ public int hashCode() {
378
356
executionStartToCloseTimeout ,
379
357
taskStartToCloseTimeout ,
380
358
taskList ,
381
- childPolicy ,
382
359
retryOptions ,
383
360
cronSchedule ,
384
361
memo ,
@@ -400,8 +377,6 @@ public String toString() {
400
377
+ ", taskList='"
401
378
+ taskList
402
379
+ '\''
403
- + ", childPolicy="
404
- + childPolicy
405
380
+ ", retryOptions="
406
381
+ retryOptions
407
382
+ ", cronSchedule='"
0 commit comments