|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.control.util.SyncReplClient
public class SyncReplClient
Client that simplifies using the sync repl control.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
SyncReplClient(Connection conn,
boolean persist)
Creates a new sync repl client. |
|
SyncReplClient(Connection conn,
boolean persist,
byte[] cookie)
Deprecated. use SyncReplClient(Connection, boolean) instead |
|
| Method Summary | |
|---|---|
Response<Void> |
cancel(int messageId)
Invokes a cancel operation on the supplied ldap message id. |
BlockingQueue<SyncReplItem> |
execute(SearchRequest request)
Invokes execute(SearchRequest, CookieManager, int) with a DefaultCookieManager and a capacity of Integer.MAX_VALUE. |
BlockingQueue<SyncReplItem> |
execute(SearchRequest request,
CookieManager manager)
Invokes execute(SearchRequest, CookieManager, int) with a capacity
of Integer.MAX_VALUE. |
BlockingQueue<SyncReplItem> |
execute(SearchRequest request,
CookieManager manager,
int capacity)
Performs an async search operation with the SyncRequestControl. |
| 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 SyncReplClient(Connection conn,
boolean persist)
conn - to execute the async search operation onpersist - whether to refresh and persist or just refresh
@Deprecated
public SyncReplClient(Connection conn,
boolean persist,
byte[] cookie)
SyncReplClient(Connection, boolean) instead
conn - to execute the async search operation onpersist - whether to refresh and persist or just refreshcookie - optional sync repl cookie| Method Detail |
|---|
public BlockingQueue<SyncReplItem> execute(SearchRequest request)
throws LdapException
execute(SearchRequest, CookieManager, int) with a DefaultCookieManager and a capacity of Integer.MAX_VALUE.
request - search request to execute
LdapException - if the search fails
public BlockingQueue<SyncReplItem> execute(SearchRequest request,
CookieManager manager)
throws LdapException
execute(SearchRequest, CookieManager, int) with a capacity
of Integer.MAX_VALUE.
request - search request to executemanager - for reading and writing cookies
LdapException - if the search fails
public BlockingQueue<SyncReplItem> execute(SearchRequest request,
CookieManager manager,
int capacity)
throws LdapException
SyncRequestControl. The
supplied request is modified in the following way:
AbstractRequest.setControls(
org.ldaptive.control.RequestControl...) is invoked with SyncRequestControlSearchRequest.setSearchEntryHandlers(SearchEntryHandler...)
is invoked with a custom handler that places sync repl data in a
blocking queue.AbstractRequest.setIntermediateResponseHandlers(
IntermediateResponseHandler...) is invoked with a custom handler that
places sync repl data in a blocking queue.AbstractOperation.setOperationResponseHandlers(
OperationResponseHandler[]) is invoked with a custom handler that
places the sync repl response 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 executemanager - for reading and writing cookiescapacity - of the returned blocking queue
LdapException - if the search fails
public Response<Void> cancel(int messageId)
throws LdapException
messageId - of the operation to cancel
LdapException - if the cancel operation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||