@@ -21,21 +21,22 @@ private PostExecutionControl(
21
21
this .runtimeException = runtimeException ;
22
22
}
23
23
24
- public static PostExecutionControl onlyFinalizerAdded () {
25
- return new PostExecutionControl (true , null , null );
24
+ public static < R extends CustomResource <?, ?>> PostExecutionControl < R > onlyFinalizerAdded () {
25
+ return new PostExecutionControl <> (true , null , null );
26
26
}
27
27
28
- public static PostExecutionControl defaultDispatch () {
29
- return new PostExecutionControl (false , null , null );
28
+ public static < R extends CustomResource <?, ?>> PostExecutionControl < R > defaultDispatch () {
29
+ return new PostExecutionControl <> (false , null , null );
30
30
}
31
31
32
32
public static <R extends CustomResource <?, ?>> PostExecutionControl <R > customResourceUpdated (
33
33
R updatedCustomResource ) {
34
34
return new PostExecutionControl <>(false , updatedCustomResource , null );
35
35
}
36
36
37
- public static PostExecutionControl exceptionDuringExecution (RuntimeException exception ) {
38
- return new PostExecutionControl (false , null , exception );
37
+ public static <R extends CustomResource <?, ?>> PostExecutionControl <R > exceptionDuringExecution (
38
+ RuntimeException exception ) {
39
+ return new PostExecutionControl <>(false , null , exception );
39
40
}
40
41
41
42
public boolean isOnlyFinalizerHandled () {
@@ -54,7 +55,7 @@ public boolean exceptionDuringExecution() {
54
55
return runtimeException != null ;
55
56
}
56
57
57
- public PostExecutionControl withReSchedule (long delay ) {
58
+ public PostExecutionControl < R > withReSchedule (long delay ) {
58
59
this .reScheduleDelay = delay ;
59
60
return this ;
60
61
}
0 commit comments