Class AbstractAsyncOperation<Q extends Request,​S>

  • Type Parameters:
    Q - type of ldap request
    S - type of ldap response
    All Implemented Interfaces:
    Operation<Q,​S>
    Direct Known Subclasses:
    AsyncSearchOperation

    public abstract class AbstractAsyncOperation<Q extends Request,​S>
    extends AbstractOperation<Q,​S>
    Base class for asynchronous ldap operations.
    • Field Detail

      • asyncRequestHandlers

        private AsyncRequestHandler[] asyncRequestHandlers
        Handlers to handle async requests.
      • exceptionHandler

        private ExceptionHandler exceptionHandler
        Handler to handle exceptions.
    • Constructor Detail

      • AbstractAsyncOperation

        public AbstractAsyncOperation​(Connection conn)
        Creates a new abstract async operation.
        Parameters:
        conn - to use for this operation
    • Method Detail

      • getAsyncRequestHandlers

        public AsyncRequestHandler[] getAsyncRequestHandlers()
        Returns the async request handlers.
        Returns:
        async request handlers
      • setAsyncRequestHandlers

        public void setAsyncRequestHandlers​(AsyncRequestHandler... handlers)
        Sets the async request handlers.
        Parameters:
        handlers - async request handlers
      • getExceptionHandler

        public ExceptionHandler getExceptionHandler()
        Returns the exception handler.
        Returns:
        exception handler
      • setExceptionHandler

        public void setExceptionHandler​(ExceptionHandler handler)
        Sets the exception handler.
        Parameters:
        handler - exception handler