public class PersistentSearchClient extends Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
changesOnly
Whether to return only changed entries.
|
private EnumSet<PersistentSearchChangeType> |
changeTypes
Change types.
|
private Connection |
connection
Connection to invoke the search operation on.
|
protected Logger |
logger
Logger for this class.
|
private boolean |
returnEcs
Whether to return an Entry Change Notification control.
|
| Constructor and Description |
|---|
PersistentSearchClient(Connection conn,
EnumSet<PersistentSearchChangeType> types,
boolean co,
boolean re)
Creates a new persistent search client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abandon(int messageId)
Invokes an abandon operation on the supplied ldap message id.
|
BlockingQueue<PersistentSearchItem> |
execute(SearchRequest request)
Invokes
execute(SearchRequest, int) with a capacity of Integer.MAX_VALUE. |
BlockingQueue<PersistentSearchItem> |
execute(SearchRequest request,
int capacity)
Performs an async search operation with the
PersistentSearchRequestControl. |
protected final Logger logger
private final Connection connection
private final EnumSet<PersistentSearchChangeType> changeTypes
private final boolean changesOnly
private final boolean returnEcs
public PersistentSearchClient(Connection conn, EnumSet<PersistentSearchChangeType> types, boolean co, boolean re)
conn - to execute the async search operation ontypes - persistent search change typesco - whether only changed entries are returnedre - return an Entry Change Notification controlpublic BlockingQueue<PersistentSearchItem> execute(SearchRequest request) throws LdapException
execute(SearchRequest, int) with a capacity of Integer.MAX_VALUE.request - search request to executeLdapException - if the search failspublic BlockingQueue<PersistentSearchItem> execute(SearchRequest request, int capacity) throws LdapException
PersistentSearchRequestControl. The supplied request is
modified in the following way:
AbstractRequest.setControls( org.ldaptive.control.RequestControl...) is invoked with PersistentSearchRequestControlSearchRequest.setSearchEntryHandlers(SearchEntryHandler...) is invoked with a custom handler that
places persistent search data in a blocking queue.AbstractAsyncOperation.setExceptionHandler(org.ldaptive.async.handler.ExceptionHandler) is invoked with
a custom handler that places the exception in a blocking queue.The search request object should not be reused for any other search operations.
request - search request to executecapacity - of the returned blocking queueLdapException - if the search failspublic void abandon(int messageId)
throws LdapException
messageId - of the operation to abandonLdapException - if the abandon operation failsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.