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.RemoteEvent
IllegalArgumentException
- 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 © GigaSpaces.