private Instant stop = null;
private String filter = null;
private boolean leafNodesOnly = false;
+ private boolean skipNotificationData = false;
@VisibleForTesting
public final Instant getStart() {
*/
@SuppressWarnings("checkstyle:hiddenField")
public void setQueryParams(final Instant start, final Instant stop, final String filter,
- final boolean leafNodesOnly) {
+ final boolean leafNodesOnly, final boolean skipNotificationData) {
this.start = requireNonNull(start);
this.stop = stop;
this.filter = filter;
this.leafNodesOnly = leafNodesOnly;
+ this.skipNotificationData = skipNotificationData;
}
/**
return leafNodesOnly;
}
+ /**
+ * Check whether this query should notify changes without data.
+ *
+ * @return true if this query should notify about changes with data
+ */
+ public boolean isSkipNotificationData() {
+ return skipNotificationData;
+ }
+
@SuppressWarnings("checkstyle:IllegalCatch")
<T extends BaseListenerInterface> boolean checkStartStop(final Instant now, final T listener) {
if (this.stop != null) {
// FIXME: BUG-7956: xPath.setNamespaceContext(nsContext);
return (boolean) xPath.compile(this.filter).evaluate(docOfXml, XPathConstants.BOOLEAN);
}
-}
\ No newline at end of file
+}