You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: firebase-firestore/src/androidTest/java/com/google/firebase/firestore/remote/ExistenceFilterMismatchListener.java
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -59,17 +59,24 @@ public synchronized void stopListening() {
59
59
}
60
60
61
61
/**
62
-
* Waits for an existence filter mismatch.
62
+
* Returns the oldest existence filter mismatch observed, waiting if none has yet been observed.
63
63
*
64
-
* @param timeoutMillis the amount of time, in milliseconds, to wait for an existence filter
65
-
* mismatch.
64
+
* <p>The oldest existence filter mismatch observed since the most recent successful invocation of
65
+
* {@link #startListening} will be returned. A subsequent invocation of this method will return
66
+
* the second-oldest existence filter mismatch observed, and so on. An invocation of {@link
67
+
* #stopListening} followed by another invocation of {@link #startListening} will discard any
68
+
* existence filter mismatches that occurred while previously started and will start observing
69
+
* afresh.
70
+
*
71
+
* @param timeoutMillis the maximum amount of time, in milliseconds, to wait for an existence
72
+
* filter mismatch to occur.
66
73
* @return information about the existence filter mismatch that occurred.
67
74
* @throws InterruptedException if waiting is interrupted.
68
75
* @throws IllegalStateException if this object has not been started by {@link #startListening}.
69
76
* @throws IllegalArgumentException if the given timeout is less than or equal to zero.
0 commit comments