Class NodeSelector

  • All Implemented Interfaces:
    Selector

    public class NodeSelector
    extends EntitySelector
    Provides a means to filter changes for nodes.
    • Method Detail

      • getLabels

        @NotNull
        public @NotNull Set<String> getLabels()
        Set of labels that needs to be present on the node.
        Returns:
        set of properties
      • getKey

        @NotNull
        public @NotNull Map<String,​Object> getKey()
        Map of property names and values that identifies the node. All the property names needs to be part of a Key constraint and values need to match.
        Returns:
        map of property name and values
      • matches

        public boolean matches​(ChangeEvent e)
        Description copied from class: EntitySelector
        Checks if a given change event matches this selector.
        Specified by:
        matches in interface Selector
        Overrides:
        matches in class EntitySelector
        Parameters:
        e - change event to check
        Returns:
        whether the event matches or not