Skip to content

Commit ddf29e9

Browse files
committed
javadoc
1 parent 1e03abc commit ddf29e9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/EventSourceStartPriority.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
public enum EventSourceStartPriority {
44

5+
/**
6+
* Event Sources with this priority are started and synced before the event source with DEFAULT
7+
* priority. The use case to use this, if the event source holds an information regarding the
8+
* state of a resource. For example a ConfigMap would store an ID of an external resource, in this
9+
* case an event source that tracks the external resource might need this ID (event before the
10+
* reconciliation) to check the state of the external resource. The only way to ensure that the ID
11+
* is already cached is to start/sync related event source before the event source of the external
12+
* resource.
13+
*/
514
RESOURCE_STATE_LOADER, DEFAULT
615

716

0 commit comments

Comments
 (0)