|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - The generic type of the elements visited by the source iterator.public interface RemoteAsynchronousIterator<E>
Remote interface declaring the API of IAsynchronousIterator
but also declaring that each methods throws IOException in order to
be compatible with Remote and Exporter. Of course, this
means that this interface can not extend IAsynchronousIterator!
Note: In practice, IAsynchronousIterators are declared with an array
type. There are two main uses: transferring IBindingSet[]s between
JoinTasks and transferring ISolution[]s from the last join
dimension back to the client.
| Nested Class Summary | |
|---|---|
static interface |
RemoteAsynchronousIterator.RemoteElement<E>
Used to send an serialized element together with the object that knows how to de-serialize the element. |
| Method Summary | |
|---|---|
void |
close()
|
boolean |
hasNext()
|
boolean |
hasNext(long timeout,
TimeUnit unit)
|
boolean |
isExhausted()
|
E |
next()
|
E |
next(long timeout,
TimeUnit unit)
|
RemoteAsynchronousIterator.RemoteElement<E> |
nextElement()
Method applies a custom serializer to the value returned by next() and returns a RemoteAsynchronousIterator.RemoteElement that can be
transported by RMI and which knows how to de-serialize the element on the
other end. |
void |
remove()
|
| Method Detail |
|---|
boolean hasNext()
throws IOException
IOExceptionIterator.hasNext()
E next()
throws IOException
IOExceptionIterator.next()
RemoteAsynchronousIterator.RemoteElement<E> nextElement()
throws IOException
next() and returns a RemoteAsynchronousIterator.RemoteElement that can be
transported by RMI and which knows how to de-serialize the element on the
other end.
IOException
void remove()
throws IOException
IOExceptionIterator.remove()
void close()
throws IOException
IOExceptionICloseableIterator.close()
boolean isExhausted()
throws IOException
IOExceptionIAsynchronousIterator.isExhausted()
boolean hasNext(long timeout,
TimeUnit unit)
throws IOException,
InterruptedException
IOException
InterruptedExceptionIAsynchronousIterator.hasNext(long, TimeUnit)
E next(long timeout,
TimeUnit unit)
throws IOException,
InterruptedException
IOException
InterruptedExceptionIAsynchronousIterator.next(long, TimeUnit)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||