|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.ad.control.util.NotificationClient
public class NotificationClient
Client that simplifies using the notification control.
| Nested Class Summary | |
|---|---|
static class |
NotificationClient.NotificationItem
Contains data returned when using the notification control. |
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
NotificationClient(Connection conn)
Creates a new notification client. |
|
| Method Summary | |
|---|---|
void |
abandon(int messageId)
Invokes an abandon operation on the supplied ldap message id. |
BlockingQueue<NotificationClient.NotificationItem> |
execute(SearchRequest request)
Invokes execute(SearchRequest, int) with a capacity of Integer.MAX_VALUE. |
BlockingQueue<NotificationClient.NotificationItem> |
execute(SearchRequest request,
int capacity)
Performs a search operation with the NotificationControl. |
| 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 NotificationClient(Connection conn)
conn - to execute the search operation on| Method Detail |
|---|
public BlockingQueue<NotificationClient.NotificationItem> 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<NotificationClient.NotificationItem> execute(SearchRequest request,
int capacity)
throws LdapException
NotificationControl. The
supplied request is modified in the following way:
AbstractRequest.setControls(
org.ldaptive.control.RequestControl...) is invoked with NotificationControlSearchRequest.setSearchEntryHandlers(SearchEntryHandler...)
is invoked with a custom handler that places notification data in a
blocking queue. The ObjectGuidHandler and ObjectSidHandler handlers are included as well.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 | |||||||||