Package org.ldaptive.concurrent
Interface OperationWorker<Q extends Request,S extends Result>
-
- Type Parameters:
Q
- type of ldap requestS
- type of ldap response
- All Known Implementing Classes:
AbstractOperationWorker
,AddOperationWorker
,CompareOperationWorker
,DeleteOperationWorker
,ModifyDnOperationWorker
,ModifyOperationWorker
,SearchOperationWorker
public interface OperationWorker<Q extends Request,S extends Result>
Interface for ldap operation workers. These interface is meant to facilitate executing multiple requests and processing multiple responses.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<S>
execute(Q[] requests)
Execute an ldap operation for each request and waits for each operation to complete.Collection<OperationHandle<Q,S>>
send(Q[] requests)
Execute an ldap operation for each request.
-
-
-
Method Detail
-
send
Collection<OperationHandle<Q,S>> send(Q[] requests)
Execute an ldap operation for each request.- Parameters:
requests
- containing the data required by this operation- Returns:
- handle responses for this operation
-
execute
Collection<S> execute(Q[] requests)
Execute an ldap operation for each request and waits for each operation to complete.- Parameters:
requests
- containing the data required by this operation- Returns:
- responses for this operation
-
-