@@ -9,44 +9,12 @@ public class AbstractAllEventReconciler {
9
9
public static final String NO_MORE_EXCEPTION_ANNOTATION_KEY = "no.more.exception" ;
10
10
11
11
protected volatile boolean useFinalizer = true ;
12
- protected volatile boolean throwExceptionOnFirstDeleteEvent = false ;
13
- protected volatile boolean throwExceptionIfNoAnnotation = false ;
14
12
15
- protected volatile boolean waitAfterFirstRetry = false ;
16
- protected volatile boolean continuerOnRetryWait = false ;
17
- protected volatile boolean waiting = false ;
18
-
19
- protected volatile boolean isFirstDeleteEvent = true ;
13
+ private final AtomicInteger eventCounter = new AtomicInteger (0 );
20
14
21
- private boolean resourceEventPresent = false ;
22
15
private boolean deleteEventPresent = false ;
23
16
private boolean eventOnMarkedForDeletion = false ;
24
-
25
- private final AtomicInteger eventCounter = new AtomicInteger (0 );
26
-
27
- public boolean isResourceEventPresent () {
28
- return resourceEventPresent ;
29
- }
30
-
31
- public void setResourceEventPresent (boolean resourceEventPresent ) {
32
- this .resourceEventPresent = resourceEventPresent ;
33
- }
34
-
35
- public boolean isDeleteEventPresent () {
36
- return deleteEventPresent ;
37
- }
38
-
39
- public void setDeleteEventPresent (boolean deleteEventPresent ) {
40
- this .deleteEventPresent = deleteEventPresent ;
41
- }
42
-
43
- public boolean isEventOnMarkedForDeletion () {
44
- return eventOnMarkedForDeletion ;
45
- }
46
-
47
- public void setEventOnMarkedForDeletion (boolean eventOnMarkedForDeletion ) {
48
- this .eventOnMarkedForDeletion = eventOnMarkedForDeletion ;
49
- }
17
+ private boolean resourceEventPresent = false ;
50
18
51
19
public int getEventCount () {
52
20
return eventCounter .get ();
@@ -64,51 +32,27 @@ public void setUseFinalizer(boolean useFinalizer) {
64
32
this .useFinalizer = useFinalizer ;
65
33
}
66
34
67
- public boolean isFirstDeleteEvent () {
68
- return isFirstDeleteEvent ;
69
- }
70
-
71
- public void setFirstDeleteEvent (boolean firstDeleteEvent ) {
72
- isFirstDeleteEvent = firstDeleteEvent ;
73
- }
74
-
75
- public boolean isThrowExceptionOnFirstDeleteEvent () {
76
- return throwExceptionOnFirstDeleteEvent ;
77
- }
78
-
79
- public void setThrowExceptionOnFirstDeleteEvent (boolean throwExceptionOnFirstDeleteEvent ) {
80
- this .throwExceptionOnFirstDeleteEvent = throwExceptionOnFirstDeleteEvent ;
81
- }
82
-
83
- public boolean isThrowExceptionIfNoAnnotation () {
84
- return throwExceptionIfNoAnnotation ;
85
- }
86
-
87
- public void setThrowExceptionIfNoAnnotation (boolean throwExceptionIfNoAnnotation ) {
88
- this .throwExceptionIfNoAnnotation = throwExceptionIfNoAnnotation ;
89
- }
90
-
91
- public boolean isWaitAfterFirstRetry () {
92
- return waitAfterFirstRetry ;
35
+ public boolean isDeleteEventPresent () {
36
+ return deleteEventPresent ;
93
37
}
94
38
95
- public void setWaitAfterFirstRetry (boolean waitAfterFirstRetry ) {
96
- this .waitAfterFirstRetry = waitAfterFirstRetry ;
39
+ public void setDeleteEventPresent (boolean deleteEventPresent ) {
40
+ this .deleteEventPresent = deleteEventPresent ;
97
41
}
98
42
99
- public boolean isContinuerOnRetryWait () {
100
- return continuerOnRetryWait ;
43
+ public boolean isEventOnMarkedForDeletion () {
44
+ return eventOnMarkedForDeletion ;
101
45
}
102
46
103
- public void setContinuerOnRetryWait (boolean continuerOnRetryWait ) {
104
- this .continuerOnRetryWait = continuerOnRetryWait ;
47
+ public void setEventOnMarkedForDeletion (boolean eventOnMarkedForDeletion ) {
48
+ this .eventOnMarkedForDeletion = eventOnMarkedForDeletion ;
105
49
}
106
50
107
- public boolean isWaiting () {
108
- return waiting ;
51
+ public boolean isResourceEventPresent () {
52
+ return resourceEventPresent ;
109
53
}
110
54
111
- public void setWaiting (boolean waiting ) {
112
- this .waiting = waiting ;
55
+ public void setResourceEventPresent (boolean resourceEventPresent ) {
56
+ this .resourceEventPresent = resourceEventPresent ;
113
57
}
114
58
}
0 commit comments