Package org.ldaptive.concurrent
Class AbstractOperationWorker<T extends Operation<Q,S>,Q extends Request,S extends Result>
java.lang.Object
org.ldaptive.concurrent.AbstractOperationWorker<T,Q,S>
- Type Parameters:
T
- type of operationQ
- type of ldap requestS
- type of ldap response
- All Implemented Interfaces:
OperationWorker<Q,
S>
- Direct Known Subclasses:
AddOperationWorker
,CompareOperationWorker
,DeleteOperationWorker
,ModifyDnOperationWorker
,ModifyOperationWorker
,SearchOperationWorker
public abstract class AbstractOperationWorker<T extends Operation<Q,S>,Q extends Request,S extends Result>
extends Object
implements OperationWorker<Q,S>
Base class for worker operations.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute an ldap operation for each request on a separate thread and waits for all operations to complete.Returns the underlying operation.Execute an ldap operation for each request on a separate thread.void
setOperation
(T op) Sets the underlying operation.toString()
-
Field Details
-
logger
protected final org.slf4j.Logger loggerLogger for this class. -
operation
operation to execute.
-
-
Constructor Details
-
AbstractOperationWorker
Creates a new abstract operation worker.- Parameters:
op
- operation
-
-
Method Details
-
getOperation
Returns the underlying operation.- Returns:
- operation
-
setOperation
Sets the underlying operation.- Parameters:
op
- to set
-
send
Execute an ldap operation for each request on a separate thread. -
execute
Execute an ldap operation for each request on a separate thread and waits for all operations to complete. -
toString
-