public class SearchCursorImpl
extends org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>
implements org.apache.directory.api.ldap.model.cursor.SearchCursor
| Modifier and Type | Field and Description |
|---|---|
private boolean |
done
the done flag
|
private SearchFuture |
future
the search future
|
private static org.slf4j.Logger |
LOG_CURSOR
A dedicated log for cursors
|
private org.apache.directory.api.ldap.model.message.Response |
response
a reference to hold the retrieved SearchResponse object from SearchFuture
|
private org.apache.directory.api.ldap.model.message.SearchResultDone |
searchDoneResp
a reference to hold the SearchResultDone response
|
private long |
timeout
wait time while polling for a SearchResponse
|
private TimeUnit |
timeUnit
time units of timeout value
|
| Constructor and Description |
|---|
SearchCursorImpl(SearchFuture future,
long timeout,
TimeUnit timeUnit)
Instantiates a new search cursor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(org.apache.directory.api.ldap.model.message.Response element)
This operation is not supported in SearchCursor.
|
void |
afterLast()
This operation is not supported in SearchCursor.
|
boolean |
available() |
void |
before(org.apache.directory.api.ldap.model.message.Response element)
This operation is not supported in SearchCursor.
|
void |
beforeFirst()
This operation is not supported in SearchCursor.
|
void |
close() |
void |
close(Exception cause) |
boolean |
first()
This operation is not supported in SearchCursor.
|
org.apache.directory.api.ldap.model.message.Response |
get() |
org.apache.directory.api.ldap.model.entry.Entry |
getEntry() |
org.apache.directory.api.ldap.model.message.IntermediateResponse |
getIntermediate() |
org.apache.directory.api.ldap.model.message.Referral |
getReferral() |
org.apache.directory.api.ldap.model.message.SearchResultDone |
getSearchResultDone() |
boolean |
isDone() |
boolean |
isEntry() |
boolean |
isIntermediate() |
boolean |
isReferral() |
boolean |
last()
This operation is not supported in SearchCursor.
|
boolean |
next() |
boolean |
previous()
This operation is not supported in SearchCursor.
|
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor, toStringforEach, iterator, spliteratorprivate static final org.slf4j.Logger LOG_CURSOR
private SearchFuture future
private long timeout
private TimeUnit timeUnit
private org.apache.directory.api.ldap.model.message.Response response
private boolean done
private org.apache.directory.api.ldap.model.message.SearchResultDone searchDoneResp
public SearchCursorImpl(SearchFuture future, long timeout, TimeUnit timeUnit)
future - the futuretimeout - the timeouttimeUnit - the time unitpublic boolean next()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
next in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic org.apache.directory.api.ldap.model.message.Response get()
throws org.apache.directory.api.ldap.model.cursor.InvalidCursorPositionException
get in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.cursor.InvalidCursorPositionExceptionpublic org.apache.directory.api.ldap.model.message.SearchResultDone getSearchResultDone()
getSearchResultDone in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic boolean available()
available in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>IOExceptionpublic void close(Exception cause) throws IOException
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>IOExceptionpublic void after(org.apache.directory.api.ldap.model.message.Response element)
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
after in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void afterLast()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
afterLast in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void before(org.apache.directory.api.ldap.model.message.Response element)
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
before in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void beforeFirst()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
beforeFirst in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean first()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
first in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean last()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
last in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean previous()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
previous in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean isDone()
isDone in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic boolean isReferral()
isReferral in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic org.apache.directory.api.ldap.model.message.Referral getReferral()
throws org.apache.directory.api.ldap.model.exception.LdapException
getReferral in interface org.apache.directory.api.ldap.model.cursor.SearchCursororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean isEntry()
isEntry in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic org.apache.directory.api.ldap.model.entry.Entry getEntry()
throws org.apache.directory.api.ldap.model.exception.LdapException
getEntry in interface org.apache.directory.api.ldap.model.cursor.SearchCursororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean isIntermediate()
isIntermediate in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic org.apache.directory.api.ldap.model.message.IntermediateResponse getIntermediate()
throws org.apache.directory.api.ldap.model.exception.LdapException
getIntermediate in interface org.apache.directory.api.ldap.model.cursor.SearchCursororg.apache.directory.api.ldap.model.exception.LdapExceptionCopyright © 2009–2019 The Apache Software Foundation. All rights reserved.