Package org.ldaptive.async
Class AbstractAsyncOperation<Q extends Request,S>
- java.lang.Object
-
- org.ldaptive.AbstractOperation<Q,S>
-
- org.ldaptive.async.AbstractAsyncOperation<Q,S>
-
- Type Parameters:
Q
- type of ldap requestS
- 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldaptive.AbstractOperation
AbstractOperation.ReopenOperationExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description private AsyncRequestHandler[]
asyncRequestHandlers
Handlers to handle async requests.private ExceptionHandler
exceptionHandler
Handler to handle exceptions.-
Fields inherited from class org.ldaptive.AbstractOperation
logger
-
-
Constructor Summary
Constructors Constructor Description AbstractAsyncOperation(Connection conn)
Creates a new abstract async operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncRequestHandler[]
getAsyncRequestHandlers()
Returns the async request handlers.ExceptionHandler
getExceptionHandler()
Returns the exception handler.void
setAsyncRequestHandlers(AsyncRequestHandler... handlers)
Sets the async request handlers.void
setExceptionHandler(ExceptionHandler handler)
Sets the exception handler.-
Methods inherited from class org.ldaptive.AbstractOperation
execute, executeHandlers, getConnection, getOperationExceptionHandler, getOperationResponseHandlers, invoke, setOperationExceptionHandler, setOperationResponseHandlers, toString
-
-
-
-
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
-
-