|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.control.util.PersistentSearchClient
public class PersistentSearchClient
Client that simplifies using the persistent search control.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
PersistentSearchClient(Connection conn,
EnumSet<PersistentSearchChangeType> types,
boolean co,
boolean re)
Creates a new persistent search client. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
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 control| Method Detail |
|---|
public BlockingQueue<PersistentSearchItem> execute(SearchRequest request)
throws LdapException
execute(SearchRequest, int) with a capacity of Integer.MAX_VALUE.
request - search request to execute
LdapException - if the search fails
public 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(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 queue
LdapException - if the search fails
public void abandon(int messageId)
throws LdapException
messageId - of the operation to abandon
LdapException - if the abandon operation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||