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

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.slf4j.Logger logger
      Logger for this class.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractOperationWorker​(T op)
      Creates a new abstract operation worker.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<S> execute​(Q[] requests)
      Execute an ldap operation for each request on a separate thread and waits for all operations to complete.
      T getOperation()
      Returns the underlying operation.
      java.util.Collection<OperationHandle<Q,​S>> send​(Q[] requests)
      Execute an ldap operation for each request on a separate thread.
      void setOperation​(T op)
      Sets the underlying operation.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
        Logger for this class.
    • 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 java.util.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 java.util.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object