@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public abstract class AbstractConnectionPool extends java.lang.Object implements FullLDAPInterface, java.io.Closeable
Constructor and Description |
---|
AbstractConnectionPool() |
Modifier and Type | Method and Description |
---|---|
LDAPResult |
add(AddRequest addRequest)
Processes the provided add request using a connection from this connection
pool.
|
LDAPResult |
add(Entry entry)
Processes an add operation with the provided information using a connection
from this connection pool.
|
LDAPResult |
add(ReadOnlyAddRequest addRequest)
Processes the provided add request using a connection from this connection
pool.
|
LDAPResult |
add(java.lang.String... ldifLines)
Processes an add operation with the provided information using a connection
from this connection pool.
|
LDAPResult |
add(java.lang.String dn,
Attribute... attributes)
Processes an add operation with the provided information using a connection
from this connection pool.
|
LDAPResult |
add(java.lang.String dn,
java.util.Collection<Attribute> attributes)
Processes an add operation with the provided information using a connection
from this connection pool.
|
BindResult |
bind(BindRequest bindRequest)
Processes the provided bind request using a connection from this connection
pool.
|
BindResult |
bind(java.lang.String bindDN,
java.lang.String password)
Processes a simple bind request with the provided DN and password using a
connection from this connection pool.
|
abstract void |
close()
Closes this connection pool.
|
abstract void |
close(boolean unbind,
int numThreads)
Closes this connection pool, optionally using multiple threads to close the
connections in parallel.
|
CompareResult |
compare(CompareRequest compareRequest)
Processes the provided compare request using a connection from this
connection pool.
|
CompareResult |
compare(ReadOnlyCompareRequest compareRequest)
Processes the provided compare request using a connection from this
connection pool.
|
CompareResult |
compare(java.lang.String dn,
java.lang.String attributeName,
java.lang.String assertionValue)
Processes a compare operation with the provided information using a
connection from this connection pool.
|
LDAPResult |
delete(DeleteRequest deleteRequest)
Processes the provided delete request using a connection from this
connection pool.
|
LDAPResult |
delete(ReadOnlyDeleteRequest deleteRequest)
Processes the provided delete request using a connection from this
connection pool.
|
LDAPResult |
delete(java.lang.String dn)
Deletes the entry with the specified DN using a connection from this
connection pool.
|
protected abstract void |
doHealthCheck()
Performs a health check against all connections currently available in this
connection pool.
|
abstract LDAPConnection |
getConnection()
Retrieves an LDAP connection from the pool.
|
abstract java.lang.String |
getConnectionPoolName()
Retrieves the user-friendly name that has been assigned to this connection
pool.
|
abstract LDAPConnectionPoolStatistics |
getConnectionPoolStatistics()
Retrieves the set of statistics maintained for this LDAP connection pool.
|
abstract int |
getCurrentAvailableConnections()
Retrieves the number of connections that are currently available for use in
this connection pool, if applicable.
|
SearchResultEntry |
getEntry(java.lang.String dn)
Retrieves the entry with the specified DN using a connection from this
connection pool.
|
SearchResultEntry |
getEntry(java.lang.String dn,
java.lang.String... attributes)
Retrieves the entry with the specified DN using a connection from this
connection pool.
|
abstract LDAPConnectionPoolHealthCheck |
getHealthCheck()
Retrieves the health check implementation for this connection pool.
|
abstract long |
getHealthCheckIntervalMillis()
Retrieves the length of time in milliseconds between periodic background
health checks against the available connections in this pool.
|
abstract int |
getMaximumAvailableConnections()
Retrieves the maximum number of connections to be maintained in this
connection pool, which is the maximum number of available connections that
should be available at any time, if applicable.
|
abstract java.util.Set<OperationType> |
getOperationTypesToRetryDueToInvalidConnections()
Retrieves the set of operation types for which operations should be
retried if the initial attempt fails in a manner that indicates that the
connection used to process the request may no longer be valid.
|
RootDSE |
getRootDSE()
Retrieves the directory server root DSE using a connection from this
connection pool.
|
Schema |
getSchema()
Retrieves the directory server schema definitions using a connection from
this connection pool, using the subschema subentry DN contained in the
server's root DSE.
|
Schema |
getSchema(java.lang.String entryDN)
Retrieves the directory server schema definitions that govern the specified
entry using a connection from this connection pool.
|
abstract boolean |
isClosed()
Indicates whether this connection pool has been closed.
|
LDAPResult |
modify(ModifyRequest modifyRequest)
Processes the provided modify request using a connection from this
connection pool.
|
LDAPResult |
modify(ReadOnlyModifyRequest modifyRequest)
Processes the provided modify request using a connection from this
connection pool.
|
LDAPResult |
modify(java.lang.String... ldifModificationLines)
Processes a modify request from the provided LDIF representation of the
changes using a connection from this connection pool.
|
LDAPResult |
modify(java.lang.String dn,
java.util.List<Modification> mods)
Applies the provided set of modifications to the specified entry using a
connection from this connection pool.
|
LDAPResult |
modify(java.lang.String dn,
Modification... mods)
Applies the provided set of modifications to the specified entry using a
connection from this connection pool.
|
LDAPResult |
modify(java.lang.String dn,
Modification mod)
Applies the provided modification to the specified entry using a connection
from this connection pool.
|
LDAPResult |
modifyDN(ModifyDNRequest modifyDNRequest)
Processes the provided modify DN request using a connection from this
connection pool.
|
LDAPResult |
modifyDN(ReadOnlyModifyDNRequest modifyDNRequest)
Processes the provided modify DN request using a connection from this
connection pool.
|
LDAPResult |
modifyDN(java.lang.String dn,
java.lang.String newRDN,
boolean deleteOldRDN)
Performs a modify DN operation with the provided information using a
connection from this connection pool.
|
LDAPResult |
modifyDN(java.lang.String dn,
java.lang.String newRDN,
boolean deleteOldRDN,
java.lang.String newSuperiorDN)
Performs a modify DN operation with the provided information using a
connection from this connection pool.
|
ExtendedResult |
processExtendedOperation(ExtendedRequest extendedRequest)
Processes the provided extended request using a connection from this
connection pool.
|
ExtendedResult |
processExtendedOperation(java.lang.String requestOID)
Processes an extended operation with the provided request OID using a
connection from this connection pool.
|
ExtendedResult |
processExtendedOperation(java.lang.String requestOID,
ASN1OctetString requestValue)
Processes an extended operation with the provided request OID and value
using a connection from this connection pool.
|
java.util.List<LDAPResult> |
processRequests(java.util.List<LDAPRequest> requests,
boolean continueOnError)
Processes multiple requests in the order they are provided over a single
connection from this pool.
|
java.util.List<AsyncRequestID> |
processRequestsAsync(java.util.List<LDAPRequest> requests,
long maxWaitTimeMillis)
Processes multiple requests over a single connection from this pool using
asynchronous processing to cause the operations to be processed
concurrently.
|
abstract void |
releaseConnection(LDAPConnection connection)
Releases the provided connection back to this pool.
|
void |
releaseConnectionAfterException(LDAPConnection connection,
LDAPException exception)
Releases the provided connection back to the pool after an exception has
been encountered while processing an operation on that connection.
|
abstract void |
releaseDefunctConnection(LDAPConnection connection)
Indicates that the provided connection is no longer in use, but is also no
longer fit for use.
|
abstract LDAPConnection |
replaceDefunctConnection(LDAPConnection connection)
Releases the provided connection as defunct and creates a new connection to
replace it, if possible, optionally connected to a different directory
server instance than the instance with which the original connection was
established.
|
boolean |
retryFailedOperationsDueToInvalidConnections()
Indicates whether attempts to process operations should be retried on a
newly-created connection if the initial attempt fails in a manner that
indicates that the connection used to process that request may no longer
be valid.
|
SearchResult |
search(ReadOnlySearchRequest searchRequest)
Processes the provided search request using a connection from this
connection pool.
|
SearchResult |
search(SearchRequest searchRequest)
Processes the provided search request using a connection from this
connection pool.
|
SearchResult |
search(SearchResultListener searchResultListener,
java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int sizeLimit,
int timeLimit,
boolean typesOnly,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResult |
search(SearchResultListener searchResultListener,
java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int sizeLimit,
int timeLimit,
boolean typesOnly,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResult |
search(SearchResultListener searchResultListener,
java.lang.String baseDN,
SearchScope scope,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResult |
search(SearchResultListener searchResultListener,
java.lang.String baseDN,
SearchScope scope,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResult |
search(java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int sizeLimit,
int timeLimit,
boolean typesOnly,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResult |
search(java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int sizeLimit,
int timeLimit,
boolean typesOnly,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResult |
search(java.lang.String baseDN,
SearchScope scope,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResult |
search(java.lang.String baseDN,
SearchScope scope,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResultEntry |
searchForEntry(ReadOnlySearchRequest searchRequest)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResultEntry |
searchForEntry(SearchRequest searchRequest)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResultEntry |
searchForEntry(java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int timeLimit,
boolean typesOnly,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResultEntry |
searchForEntry(java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int timeLimit,
boolean typesOnly,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResultEntry |
searchForEntry(java.lang.String baseDN,
SearchScope scope,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
SearchResultEntry |
searchForEntry(java.lang.String baseDN,
SearchScope scope,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information using a
connection from this connection pool.
|
abstract void |
setConnectionPoolName(java.lang.String connectionPoolName)
Specifies the user-friendly name that should be used for this connection
pool.
|
abstract void |
setHealthCheckIntervalMillis(long healthCheckInterval)
Specifies the length of time in milliseconds between periodic background
health checks against the available connections in this pool.
|
void |
setRetryFailedOperationsDueToInvalidConnections(boolean retryFailedOperationsDueToInvalidConnections)
Specifies whether attempts to process operations should be retried on a
newly-created connection if the initial attempt fails in a manner that
indicates that the connection used to process that request may no longer
be valid.
|
abstract void |
setRetryFailedOperationsDueToInvalidConnections(java.util.Set<OperationType> operationTypes)
Specifies the types of operations that should be retried on a newly-created
connection if the initial attempt fails in a manner that indicates that
the connection used to process the request may no longer be valid.
|
java.lang.String |
toString()
Retrieves a string representation of this connection pool.
|
abstract void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this connection pool to the provided
buffer.
|
public AbstractConnectionPool()
public abstract void close()
close
in interface FullLDAPInterface
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public abstract void close(boolean unbind, int numThreads)
unbind
- Indicates whether to try to send an unbind request to
the server before closing the connection.numThreads
- The number of threads to use when closing the
connections.public abstract boolean isClosed()
true
if this connection pool has been closed, or
false
if not.@NotNull public abstract LDAPConnection getConnection() throws LDAPException
LDAPException
- If no connection is available, or a problem occurs
while creating a new connection to return.public abstract void releaseConnection(@NotNull LDAPConnection connection)
connection
- The connection to be released back to the pool.public abstract void releaseDefunctConnection(@NotNull LDAPConnection connection)
connection
- The defunct connection being released.public final void releaseConnectionAfterException(@NotNull LDAPConnection connection, @NotNull LDAPException exception)
connection
- The connection to be evaluated and released back to the
pool or replaced with a new connection.exception
- The exception caught while processing an operation on
the connection.@NotNull public abstract LDAPConnection replaceDefunctConnection(@NotNull LDAPConnection connection) throws LDAPException
connection
- The defunct connection to be replaced.LDAPException
- If a problem is encountered while trying to create
the new connection. Note that even if an exception
is thrown, then the provided connection must have
been properly released as defunct.public final boolean retryFailedOperationsDueToInvalidConnections()
LDAPInterface
),
and will not automatically be used for operations processed on connections
checked out of the pool.
setRetryFailedOperationsDueToInvalidConnections(Set)
method. If retry is enabled for any operation type, then this method will
return true
, and it will only return false
if retry should
not be used for any operation type. To determine the operation types for
which failed operations may be retried, use the
getOperationTypesToRetryDueToInvalidConnections()
method.true
if the connection pool should attempt to retry
operations on a newly-created connection if they fail in a way
that indicates the associated connection may no longer be usable,
or false
if operations should only be attempted once.@NotNull public abstract java.util.Set<OperationType> getOperationTypesToRetryDueToInvalidConnections()
public final void setRetryFailedOperationsDueToInvalidConnections(boolean retryFailedOperationsDueToInvalidConnections)
LDAPInterface
),
and will not automatically be used for operations processed on connections
checked out of the pool.
setRetryFailedOperationsDueToInvalidConnections(Set)
method. If this is called with a value of true
, then retry will be
enabled for all types of operations. If it is called with a value of
false
, then retry will be disabled for all types of operations.retryFailedOperationsDueToInvalidConnections
- Indicates whether attempts to process operations should be
retried on a newly-created connection if they fail in a way
that indicates the associated connection may no longer be
usable.public abstract void setRetryFailedOperationsDueToInvalidConnections(@Nullable java.util.Set<OperationType> operationTypes)
LDAPInterface
),
and will not automatically be used for operations processed on connections
checked out of the pool.operationTypes
- The types of operations for which to retry failed
operations if they fail in a way that indicates the
associated connection may no longer be usable. It
may be null
or empty to indicate that no
types of operations should be retried.public abstract int getCurrentAvailableConnections()
public abstract int getMaximumAvailableConnections()
@NotNull public abstract LDAPConnectionPoolStatistics getConnectionPoolStatistics()
@Nullable public abstract java.lang.String getConnectionPoolName()
null
if none has been assigned.public abstract void setConnectionPoolName(@Nullable java.lang.String connectionPoolName)
connectionPoolName
- The user-friendly name that should be used for
this connection pool.@NotNull public abstract LDAPConnectionPoolHealthCheck getHealthCheck()
public abstract long getHealthCheckIntervalMillis()
public abstract void setHealthCheckIntervalMillis(long healthCheckInterval)
healthCheckInterval
- The length of time in milliseconds between
periodic background health checks against the
available connections in this pool. The
provided value must be greater than zero.protected abstract void doHealthCheck()
@Nullable public final RootDSE getRootDSE() throws LDAPException
getRootDSE
in interface LDAPInterface
null
if it is not
available.LDAPException
- If a problem occurs while attempting to retrieve
the server root DSE.@Nullable public final Schema getSchema() throws LDAPException
getSchema
in interface LDAPInterface
null
if the
schema information could not be retrieved (e.g, the client does
not have permission to read the server schema).LDAPException
- If a problem occurs while attempting to retrieve
the server schema.@Nullable public final Schema getSchema(@Nullable java.lang.String entryDN) throws LDAPException
getSchema
in interface LDAPInterface
entryDN
- The DN of the entry for which to retrieve the associated
schema definitions. It may be null
or an empty
string if the subschemaSubentry attribute should be
retrieved from the server's root DSE.null
if the
schema information could not be retrieved (e.g, the client does
not have permission to read the server schema).LDAPException
- If a problem occurs while attempting to retrieve
the server schema.@Nullable public final SearchResultEntry getEntry(@NotNull java.lang.String dn) throws LDAPException
getEntry
in interface LDAPInterface
dn
- The DN of the entry to retrieve. It must not be null
.null
if the target entry does not
exist or no entry was returned (e.g., if the authenticated user
does not have permission to read the target entry).LDAPException
- If a problem occurs while sending the request or
reading the response.@Nullable public final SearchResultEntry getEntry(@NotNull java.lang.String dn, @Nullable java.lang.String... attributes) throws LDAPException
getEntry
in interface LDAPInterface
dn
- The DN of the entry to retrieve. It must not be
null
.attributes
- The set of attributes to request for the target entry.
If it is null
, then all user attributes will be
requested.null
if the target entry does not
exist or no entry was returned (e.g., if the authenticated user
does not have permission to read the target entry).LDAPException
- If a problem occurs while sending the request or
reading the response.@NotNull public final LDAPResult add(@NotNull java.lang.String dn, @NotNull Attribute... attributes) throws LDAPException
add
in interface LDAPInterface
dn
- The DN of the entry to add. It must not be
null
.attributes
- The set of attributes to include in the entry to add.
It must not be null
.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult add(@NotNull java.lang.String dn, @NotNull java.util.Collection<Attribute> attributes) throws LDAPException
add
in interface LDAPInterface
dn
- The DN of the entry to add. It must not be
null
.attributes
- The set of attributes to include in the entry to add.
It must not be null
.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult add(@NotNull Entry entry) throws LDAPException
add
in interface LDAPInterface
entry
- The entry to add. It must not be null
.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult add(@NotNull java.lang.String... ldifLines) throws LDIFException, LDAPException
add
in interface LDAPInterface
ldifLines
- The lines that comprise an LDIF representation of the
entry to add. It must not be empty or null
.LDIFException
- If the provided entry lines cannot be decoded as an
entry in LDIF form.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult add(@NotNull AddRequest addRequest) throws LDAPException
add
in interface LDAPInterface
addRequest
- The add request to be processed. It must not be
null
.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult add(@NotNull ReadOnlyAddRequest addRequest) throws LDAPException
add
in interface LDAPInterface
addRequest
- The add request to be processed. It must not be
null
.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final BindResult bind(@Nullable java.lang.String bindDN, @Nullable java.lang.String password) throws LDAPException
bind
in interface FullLDAPInterface
bindDN
- The bind DN for the bind operation.password
- The password for the simple bind operation.LDAPException
- If the server rejects the bind request, or if a
problem occurs while sending the request or reading
the response.@NotNull public final BindResult bind(@NotNull BindRequest bindRequest) throws LDAPException
bind
in interface FullLDAPInterface
bindRequest
- The bind request to be processed. It must not be
null
.LDAPException
- If the server rejects the bind request, or if a
problem occurs while sending the request or reading
the response.@NotNull public final CompareResult compare(@NotNull java.lang.String dn, @NotNull java.lang.String attributeName, @NotNull java.lang.String assertionValue) throws LDAPException
compare
in interface LDAPInterface
dn
- The DN of the entry in which to make the
comparison. It must not be null
.attributeName
- The attribute name for which to make the
comparison. It must not be null
.assertionValue
- The assertion value to verify in the target entry.
It must not be null
.LDAPException
- If the server rejects the compare request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final CompareResult compare(@NotNull CompareRequest compareRequest) throws LDAPException
compare
in interface LDAPInterface
compareRequest
- The compare request to be processed. It must not
be null
.LDAPException
- If the server rejects the compare request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final CompareResult compare(@NotNull ReadOnlyCompareRequest compareRequest) throws LDAPException
compare
in interface LDAPInterface
compareRequest
- The compare request to be processed. It must not
be null
.LDAPException
- If the server rejects the compare request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult delete(@NotNull java.lang.String dn) throws LDAPException
delete
in interface LDAPInterface
dn
- The DN of the entry to delete. It must not be null
.LDAPException
- If the server rejects the delete request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult delete(@NotNull DeleteRequest deleteRequest) throws LDAPException
delete
in interface LDAPInterface
deleteRequest
- The delete request to be processed. It must not be
null
.LDAPException
- If the server rejects the delete request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult delete(@NotNull ReadOnlyDeleteRequest deleteRequest) throws LDAPException
delete
in interface LDAPInterface
deleteRequest
- The delete request to be processed. It must not be
null
.LDAPException
- If the server rejects the delete request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final ExtendedResult processExtendedOperation(@NotNull java.lang.String requestOID) throws LDAPException
processExtendedOperation
in interface FullLDAPInterface
requestOID
- The OID for the extended request to process. It must
not be null
.LDAPException
- If a problem occurs while sending the request or
reading the response.@NotNull public final ExtendedResult processExtendedOperation(@NotNull java.lang.String requestOID, @Nullable ASN1OctetString requestValue) throws LDAPException
processExtendedOperation
in interface FullLDAPInterface
requestOID
- The OID for the extended request to process. It must
not be null
.requestValue
- The encoded value for the extended request to
process. It may be null
if there does not
need to be a value for the requested operation.LDAPException
- If a problem occurs while sending the request or
reading the response.@NotNull public final ExtendedResult processExtendedOperation(@NotNull ExtendedRequest extendedRequest) throws LDAPException
processExtendedOperation
in interface FullLDAPInterface
extendedRequest
- The extended request to be processed. It must not
be null
.LDAPException
- If a problem occurs while sending the request or
reading the response.@NotNull public final LDAPResult modify(@NotNull java.lang.String dn, @NotNull Modification mod) throws LDAPException
modify
in interface LDAPInterface
dn
- The DN of the entry to modify. It must not be null
.mod
- The modification to apply to the target entry. It must not
be null
.LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult modify(@NotNull java.lang.String dn, @NotNull Modification... mods) throws LDAPException
modify
in interface LDAPInterface
dn
- The DN of the entry to modify. It must not be null
.mods
- The set of modifications to apply to the target entry. It
must not be null
or empty. *LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult modify(@NotNull java.lang.String dn, @NotNull java.util.List<Modification> mods) throws LDAPException
modify
in interface LDAPInterface
dn
- The DN of the entry to modify. It must not be null
.mods
- The set of modifications to apply to the target entry. It
must not be null
or empty.LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult modify(@NotNull java.lang.String... ldifModificationLines) throws LDIFException, LDAPException
modify
in interface LDAPInterface
ldifModificationLines
- The lines that comprise an LDIF
representation of a modify change record.
It must not be null
or empty.LDIFException
- If the provided set of lines cannot be parsed as an
LDIF modify change record.LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult modify(@NotNull ModifyRequest modifyRequest) throws LDAPException
modify
in interface LDAPInterface
modifyRequest
- The modify request to be processed. It must not be
null
.LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult modify(@NotNull ReadOnlyModifyRequest modifyRequest) throws LDAPException
modify
in interface LDAPInterface
modifyRequest
- The modify request to be processed. It must not be
null
.LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull public final LDAPResult modifyDN(@NotNull java.lang.String dn, @NotNull java.lang.String newRDN, boolean deleteOldRDN) throws LDAPException
modifyDN
in interface LDAPInterface
dn
- The current DN for the entry to rename. It must not
be null
.newRDN
- The new RDN to use for the entry. It must not be
null
.deleteOldRDN
- Indicates whether to delete the current RDN value
from the entry.LDAPException
- If the server rejects the modify DN request, or if
a problem is encountered while sending the request
or reading the response.@NotNull public final LDAPResult modifyDN(@NotNull java.lang.String dn, @NotNull java.lang.String newRDN, boolean deleteOldRDN, @Nullable java.lang.String newSuperiorDN) throws LDAPException
modifyDN
in interface LDAPInterface
dn
- The current DN for the entry to rename. It must not
be null
.newRDN
- The new RDN to use for the entry. It must not be
null
.deleteOldRDN
- Indicates whether to delete the current RDN value
from the entry.newSuperiorDN
- The new superior DN for the entry. It may be
null
if the entry is not to be moved below a
new parent.LDAPException
- If the server rejects the modify DN request, or if
a problem is encountered while sending the request
or reading the response.@NotNull public final LDAPResult modifyDN(@NotNull ModifyDNRequest modifyDNRequest) throws LDAPException
modifyDN
in interface LDAPInterface
modifyDNRequest
- The modify DN request to be processed. It must
not be null
.LDAPException
- If the server rejects the modify DN request, or if
a problem is encountered while sending the request
or reading the response.@NotNull public final LDAPResult modifyDN(@NotNull ReadOnlyModifyDNRequest modifyDNRequest) throws LDAPException
modifyDN
in interface LDAPInterface
modifyDNRequest
- The modify DN request to be processed. It must
not be null
.LDAPException
- If the server rejects the modify DN request, or if
a problem is encountered while sending the request
or reading the response.@NotNull public final SearchResult search(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
SearchResult
object that is returned.
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.search
in interface LDAPInterface
baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.filter
- The string representation of the filter to use to
identify matching entries. It must not be
null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while parsing
the provided filter string, sending the
request, or reading the response. If one or
more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull public final SearchResult search(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
SearchResult
object that is returned.
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.search
in interface LDAPInterface
baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.filter
- The filter to use to identify matching entries. It
must not be null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull public final SearchResult search(@Nullable SearchResultListener searchResultListener, @NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).search
in interface LDAPInterface
searchResultListener
- The search result listener that should be
used to return results to the client. It may
be null
if the search results should
be collected internally and returned in the
SearchResult
object.baseDN
- The base DN for the search request. It must
not be null
.scope
- The scope that specifies the range of entries
that should be examined for the search.filter
- The string representation of the filter to
use to identify matching entries. It must
not be null
.attributes
- The set of attributes that should be returned
in matching entries. It may be null
or empty if the default attribute set (all
user attributes) is to be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while parsing
the provided filter string, sending the
request, or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull public final SearchResult search(@Nullable SearchResultListener searchResultListener, @NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).search
in interface LDAPInterface
searchResultListener
- The search result listener that should be
used to return results to the client. It may
be null
if the search results should
be collected internally and returned in the
SearchResult
object.baseDN
- The base DN for the search request. It must
not be null
.scope
- The scope that specifies the range of entries
that should be examined for the search.filter
- The filter to use to identify matching
entries. It must not be null
.attributes
- The set of attributes that should be returned
in matching entries. It may be null
or empty if the default attribute set (all
user attributes) is to be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull public final SearchResult search(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int sizeLimit, int timeLimit, boolean typesOnly, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
SearchResult
object that is returned.
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.search
in interface LDAPInterface
baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.derefPolicy
- The dereference policy the server should use for any
aliases encountered while processing the search.sizeLimit
- The maximum number of entries that the server should
return for the search. A value of zero indicates that
there should be no limit.timeLimit
- The maximum length of time in seconds that the server
should spend processing this search request. A value
of zero indicates that there should be no limit.typesOnly
- Indicates whether to return only attribute names in
matching entries, or both attribute names and values.filter
- The string representation of the filter to use to
identify matching entries. It must not be
null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while parsing
the provided filter string, sending the
request, or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull public final SearchResult search(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int sizeLimit, int timeLimit, boolean typesOnly, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
SearchResult
object that is returned.
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.search
in interface LDAPInterface
baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.derefPolicy
- The dereference policy the server should use for any
aliases encountered while processing the search.sizeLimit
- The maximum number of entries that the server should
return for the search. A value of zero indicates that
there should be no limit.timeLimit
- The maximum length of time in seconds that the server
should spend processing this search request. A value
of zero indicates that there should be no limit.typesOnly
- Indicates whether to return only attribute names in
matching entries, or both attribute names and values.filter
- The filter to use to identify matching entries. It
must not be null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull public final SearchResult search(@Nullable SearchResultListener searchResultListener, @NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int sizeLimit, int timeLimit, boolean typesOnly, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).search
in interface LDAPInterface
searchResultListener
- The search result listener that should be
used to return results to the client. It may
be null
if the search results should
be collected internally and returned in the
SearchResult
object.baseDN
- The base DN for the search request. It must
not be null
.scope
- The scope that specifies the range of entries
that should be examined for the search.derefPolicy
- The dereference policy the server should use
for any aliases encountered while processing
the search.sizeLimit
- The maximum number of entries that the server
should return for the search. A value of
zero indicates that there should be no limit.timeLimit
- The maximum length of time in seconds that
the server should spend processing this
search request. A value of zero indicates
that there should be no limit.typesOnly
- Indicates whether to return only attribute
names in matching entries, or both attribute
names and values.filter
- The string representation of the filter to
use to identify matching entries. It must
not be null
.attributes
- The set of attributes that should be returned
in matching entries. It may be null
or empty if the default attribute set (all
user attributes) is to be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while parsing
the provided filter string, sending the
request, or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull public final SearchResult search(@Nullable SearchResultListener searchResultListener, @NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int sizeLimit, int timeLimit, boolean typesOnly, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).search
in interface LDAPInterface
searchResultListener
- The search result listener that should be
used to return results to the client. It may
be null
if the search results should
be collected internally and returned in the
SearchResult
object.baseDN
- The base DN for the search request. It must
not be null
.scope
- The scope that specifies the range of entries
that should be examined for the search.derefPolicy
- The dereference policy the server should use
for any aliases encountered while processing
the search.sizeLimit
- The maximum number of entries that the server
should return for the search. A value of
zero indicates that there should be no limit.timeLimit
- The maximum length of time in seconds that
the server should spend processing this
search request. A value of zero indicates
that there should be no limit.typesOnly
- Indicates whether to return only attribute
names in matching entries, or both attribute
names and values.filter
- The filter to use to identify matching
entries. It must not be null
.attributes
- The set of attributes that should be returned
in matching entries. It may be null
or empty if the default attribute set (all
user attributes) is to be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull public final SearchResult search(@NotNull SearchRequest searchRequest) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).search
in interface LDAPInterface
searchRequest
- The search request to be processed. It must not be
null
.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull public final SearchResult search(@NotNull ReadOnlySearchRequest searchRequest) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).search
in interface LDAPInterface
searchRequest
- The search request to be processed. It must not be
null
.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable public final SearchResultEntry searchForEntry(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.searchForEntry
in interface LDAPInterface
baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.filter
- The string representation of the filter to use to
identify matching entries. It must not be
null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable public final SearchResultEntry searchForEntry(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.searchForEntry
in interface LDAPInterface
baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.filter
- The string representation of the filter to use to
identify matching entries. It must not be
null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable public final SearchResultEntry searchForEntry(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int timeLimit, boolean typesOnly, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.searchForEntry
in interface LDAPInterface
baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.derefPolicy
- The dereference policy the server should use for any
aliases encountered while processing the search.timeLimit
- The maximum length of time in seconds that the server
should spend processing this search request. A value
of zero indicates that there should be no limit.typesOnly
- Indicates whether to return only attribute names in
matching entries, or both attribute names and values.filter
- The string representation of the filter to use to
identify matching entries. It must not be
null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable public final SearchResultEntry searchForEntry(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int timeLimit, boolean typesOnly, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.searchForEntry
in interface LDAPInterface
baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.derefPolicy
- The dereference policy the server should use for any
aliases encountered while processing the search.timeLimit
- The maximum length of time in seconds that the server
should spend processing this search request. A value
of zero indicates that there should be no limit.typesOnly
- Indicates whether to return only attribute names in
matching entries, or both attribute names and values.filter
- The filter to use to identify matching entries. It
must not be null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable public final SearchResultEntry searchForEntry(@NotNull SearchRequest searchRequest) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.searchForEntry
in interface LDAPInterface
searchRequest
- The search request to be processed. If it is
configured with a search result listener or a size
limit other than one, then the provided request will
be duplicated with the appropriate settings.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable public final SearchResultEntry searchForEntry(@NotNull ReadOnlySearchRequest searchRequest) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.searchForEntry
in interface LDAPInterface
searchRequest
- The search request to be processed. If it is
configured with a search result listener or a size
limit other than one, then the provided request will
be duplicated with the appropriate settings.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull public final java.util.List<LDAPResult> processRequests(@NotNull java.util.List<LDAPRequest> requests, boolean continueOnError) throws LDAPException
retryFailedOperationsDueToInvalidConnections()
setting will be
ignored when processing the provided operations, so that any failed
operations will not be retried.requests
- The list of requests to be processed. It must not
be null
or empty.continueOnError
- Indicates whether to attempt to process subsequent
requests if any of the operations does not
complete successfully.continueOnError
is false
.LDAPException
- If a problem occurs while trying to obtain a
connection to use for the requests.@NotNull public final java.util.List<AsyncRequestID> processRequestsAsync(@NotNull java.util.List<LDAPRequest> requests, long maxWaitTimeMillis) throws LDAPException
AsyncSearchResultListener
.
This method will not return until all operations have completed, or until
the specified timeout period has elapsed. The order of elements in the
list of the AsyncRequestID
objects returned will correspond to the
order of elements in the list of requests. The operation results may be
obtained from the returned AsyncRequestID
objects using the
java.util.concurrent.Future
API.requests
- The list of requests to be processed. It must
not be null
or empty, and it must
contain only add, compare, modify, modify DN,
and search requests. Any search requests must
be configured with an
AsyncSearchResultListener
.maxWaitTimeMillis
- The maximum length of time in milliseconds to
wait for the operations to complete before
returning. A value that is less than or equal
to zero indicates that the client should wait
indefinitely for the operations to complete.AsyncRequestID
objects that may be used to
retrieve the results for the operations. The order of elements in
this list will correspond to the order of the provided requests.LDAPException
- If there is a problem with any of the requests, or
if connections in the pool are configured to use
synchronous mode and therefore cannot be used to
process asynchronous operations.@NotNull public final java.lang.String toString()
toString
in class java.lang.Object