Skip to content

Commit

Permalink
swap javadoc for filter annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
yue9944882 committed Dec 30, 2020
1 parent eb94f2b commit f7279e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
import java.lang.annotation.Target;

/**
* Indicates that the method is a filter for {@link io.kubernetes.client.informer.EventType#DELETED}
* from watches.
* Indicates that the method is a filter for {@link
* io.kubernetes.client.informer.EventType#MODIFIED} from watches.
*
* <p>A delete-event filter must have the signature as {@link
* java.util.function.BiPredicate<ApiType,ApiType>} where the 1st parameter is the old state of the
* resource and the 2nd is the new state.
* <p>A update-event filter must have the signature as {@link
* java.util.function.BiPredicate<ApiType, Boolean>} where the 1st parameter is the
* "before-deletion" state of the resource and the 2nd indicates whether the cache entry for the
* resource is stale.
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
import java.lang.annotation.Target;

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

0 comments on commit f7279e1

Please sign in to comment.