Skip to content

Commit cd84eaa

Browse files
authored
Merge pull request #1465 from yue9944882/watch-event-filter
Swap javadoc for filter annotations
2 parents 42b5069 + f7279e1 commit cd84eaa

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/DeleteWatchEventFilter.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
import java.lang.annotation.Target;
2020

2121
/**
22-
* Indicates that the method is a filter for {@link io.kubernetes.client.informer.EventType#DELETED}
23-
* from watches.
22+
* Indicates that the method is a filter for {@link
23+
* io.kubernetes.client.informer.EventType#MODIFIED} from watches.
2424
*
25-
* <p>A delete-event filter must have the signature as {@link
26-
* java.util.function.BiPredicate<ApiType,ApiType>} where the 1st parameter is the old state of the
27-
* resource and the 2nd is the new state.
25+
* <p>A update-event filter must have the signature as {@link
26+
* java.util.function.BiPredicate<ApiType, Boolean>} where the 1st parameter is the
27+
* "before-deletion" state of the resource and the 2nd indicates whether the cache entry for the
28+
* resource is stale.
2829
*/
2930
@Target({ElementType.METHOD})
3031
@Retention(RetentionPolicy.RUNTIME)

spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/UpdateWatchEventFilter.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@
1818
import java.lang.annotation.Target;
1919

2020
/**
21-
* Indicates that the method is a filter for {@link
22-
* io.kubernetes.client.informer.EventType#MODIFIED} from watches.
21+
* Indicates that the method is a filter for {@link io.kubernetes.client.informer.EventType#DELETED}
22+
* from watches.
2323
*
24-
* <p>A update-event filter must have the signature as {@link
25-
* java.util.function.BiPredicate<ApiType, Boolean>} where the 1st parameter is the
26-
* "before-deletion" state of the resource and the 2nd indicates whether the cache entry for the
27-
* resource is stale.
24+
* <p>A delete-event filter must have the signature as {@link
25+
* java.util.function.BiPredicate<ApiType,ApiType>} where the 1st parameter is the old state of the
26+
* resource and the 2nd is the new state.
2827
*/
2928
@Target({ElementType.METHOD})
3029
@Retention(RetentionPolicy.RUNTIME)

0 commit comments

Comments
 (0)