@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface GroupMemberIterator extends java.io.Closeable
close()
method should be called if the
caller wants to stop iterating before reaching the end of the set of members.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this iterator and indicates that the server may clean up any
resources associated with it.
|
DN |
nextMemberDN()
Retrieves the DN of the entry for the next group member.
|
Entry |
nextMemberEntry()
Retrieves the entry for the next group member.
|
DN nextMemberDN() throws GroupMemberIteratorException
null
if there are no
more members.GroupMemberIteratorException
- If a problem is encountered while
attempting to retrieve the DN for the next member. The
GroupMemberIteratorException.mayContinueIterating()
method should be used to determine whether the problem is
with the next member and it is safe to continue using this
iterator, or whether the iterator itself is no longer valid.Entry nextMemberEntry() throws GroupMemberIteratorException
null
if there are
no more members.GroupMemberIteratorException
- If a problem is encountered while
attempting to retrieve the entry for the next member. The
GroupMemberIteratorException.mayContinueIterating()
method should be used to determine whether the problem is
with the next member and it is safe to continue using this
iterator, or whether the iterator itself is no longer valid.void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable