MatchSet
instead. MatchSet
s
can be obtained using the
JavaSpace05.contents
method.public interface AdminIterator
contents()
method of JavaSpaceAdmin
. Note
AdminIterator
s do not survive restarts of the
underlying space.
JavaSpaceAdmin
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Tell the server that this iterator is no longer in use.
|
void |
delete()
Deprecated.
The effect of this call depends on the most recent call to
next() :
If the last call to next() returned an
Entry that entry will be removed from the space. |
Entry |
next()
Deprecated.
Return the next entry in the sequence.
|
Entry next() throws UnusableEntryException, RemoteException
null
if there are no more matching entries in the space.
This method is idempotent in the face of RemoteException
s.
UnusableEntryException
- if the field of next entry in
sequence can't be deserialized (usually this is because the class
in question could not be loaded).RemoteException
- if connection problem occurs.void delete() throws RemoteException
next()
:
next()
returned an
Entry
that entry will be removed from the space.
next()
threw a
UnusableEntryException
the Entry
that
could not be deserialized will be removed from the space.
next()
returned
null
, threw a RemoteException
, or
next()
has not yet been called on this iterator a
IllegalStateException
will be thrown and no entry will
be removed.
RemoteException
.
RemoteException
- if connection problem occurs.IllegalStateException
- if next()
has not be
called on this iterator, or the last invocation of
next()
returned null
or threw
RemoteException
.void close() throws RemoteException
close()
method.
This method is idempotent in the face of RemoteException
.
RemoteException
- if connection problem occurs, or if
connection already closed.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.