public interface RemoteEventIterator
RemoteEventIterator defines the interface through which
a client can synchronously retrieve events associated with a given
registration.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Ends all event processing being performed by this iterator
and invalidates the iterator.
|
RemoteEvent |
next(long timeout)
Retrieves stored event notifications, if any.
|
RemoteEvent next(long timeout) throws RemoteException, InvalidIteratorException
timeout - the maximum time, in milliseconds, the event mailbox
service should wait for the receipt of an event notification
associated with this iterator's registration.RemoteEventIllegalArgumentException - if the supplied timeout
parameter is less than 0.InvalidIteratorException - if called on an invalidated iterator.RemoteException - if there is
a communication failure between the client and the service.void close()
throws InvalidIteratorException
InvalidIteratorException - if called on an invalidated iterator.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.