Constructs a notification query result.
Parameters:
-
earliestSequenceNumber - the sequence number of the
earliest notification still in the buffer.
-
nextSequenceNumber - the sequence number of the next
notification available for querying.
-
targetedNotifications - the notifications resulting from
the query, and the listeners they correspond to. This array
can be empty.
Throws:
-
IllegalArgumentException - if
targetedNotifications
is null or if
earliestSequenceNumber
or
nextSequenceNumber
is negative.