Interface FilterWatcher

  • All Known Implementing Classes:
    DefaultFilterWatcher

    public interface FilterWatcher
    Evaluates filter rule and issues callback when the results change.
    • Method Detail

      • watch

        Closeable watch​(String filterRule,
                        java.util.function.Consumer<FilterWatcher.FilterResults> callback)
        Issues callbacks to the given consumer when the results of the filter change. A callback is expected to be issued immediately when the watch session is started. Additional callback will be made if/when the results change.
        Parameters:
        filterRule - a valid filter rule if null, or empty the filter will match everything
        callback - used for callbacks
        Returns:
        close when done watching