|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RgyIterator
Returned by methods in RgyRegistry for iterating over lists of user or group names (either SAM or Native) found during a search of the registry.
Multiple threads should not access the same instance of this interface at the same time.
Unlike all other Rgy class methods, this class will not fail-over if the registry server fails in the middle of it's operation. It will simply throw a ServerDownRgyException. The exploiter of this class must deal with the issue and retry their operation. If a new instance of RgyIterator is created, it will choose a registry server that is working to begin it's search on, if one is available.
Method Summary | |
---|---|
void |
close()
This methods primary purpose is to allow the iteration to be aborted early, before hasNext() has returned false or RgyIterator method has thrown an RgyException. |
boolean |
hasNext()
Used to determine if the iteration has more elements to return. |
java.lang.String |
next()
Returns the next element in the iteration. |
Method Detail |
---|
boolean hasNext() throws RgyException
SizeLimitExceededRgyException
- if more results are available
than the maxResults specified when this RgyIterator was obtained.
This only occurs after maxResults iterations have been completed.
RgyException
java.lang.String next() throws RgyException
java.util.NoSuchElementException
- iteration has no more elements.
RgyException
void close()
Normally close is called automatically. Close() can be called multiple times without issue.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |