org.ldaptive.async
Class AbstractAsyncOperation<Q extends Request,S>

java.lang.Object
  extended by org.ldaptive.AbstractOperation<Q,S>
      extended by org.ldaptive.async.AbstractAsyncOperation<Q,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.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ldaptive.AbstractOperation
AbstractOperation.ReopenOperationExceptionHandler
 
Field Summary
 
Fields inherited from class org.ldaptive.AbstractOperation
logger
 
Constructor Summary
AbstractAsyncOperation(Connection conn)
          Creates a new abstract async operation.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.