Class AbstractOperationWorker<T extends Operation<Q,​S>,​Q extends Request,​S extends Result>

    • Field Detail

      • logger

        protected final Logger logger
        Logger for this class.
      • operation

        private T extends Operation<Q,​S> operation
        operation to execute.
    • Constructor Detail

      • AbstractOperationWorker

        public AbstractOperationWorker​(T op)
        Creates a new abstract operation worker.
        Parameters:
        op - operation
    • Method Detail

      • getOperation

        public T getOperation()
        Returns the underlying operation.
        Returns:
        operation
      • setOperation

        public void setOperation​(T op)
        Sets the underlying operation.
        Parameters:
        op - to set
      • send

        public Collection<OperationHandle<Q,​S>> send​(Q[] requests)
        Execute an ldap operation for each request on a separate thread.
        Specified by:
        send in interface OperationWorker<T extends Operation<Q,​S>,​Q extends Request>
        Parameters:
        requests - containing the data required by this operation
        Returns:
        future responses for this operation
      • execute

        public Collection<S> execute​(Q[] requests)
        Execute an ldap operation for each request on a separate thread and waits for all operations to complete.
        Specified by:
        execute in interface OperationWorker<T extends Operation<Q,​S>,​Q extends Request>
        Parameters:
        requests - containing the data required by this operation
        Returns:
        responses for this operation