Package org.forgerock.opendj.ldap
Interface IntermediateResponseHandler
public interface IntermediateResponseHandler
A completion handler for consuming intermediate responses returned from
extended operations, or other operations for which an appropriate control was
sent.
Intermediate responses are rarely used in practice and are therefore only supported in a few specialized cases where they are most likely to be encountered:
- when performing extended requests using the
Connection.extendedRequest(org.forgerock.opendj.ldap.messages.ExtendedRequest<R>)
methods - when using the asynchronous operation methods, such as
Connection.addAsync(org.forgerock.opendj.ldap.messages.AddRequest)
The handleIntermediateResponse(org.forgerock.opendj.ldap.messages.IntermediateResponse)
method is invoked each time a
Intermediate Response is returned from the Directory Server.
Implementations of these methods should complete in a timely manner so as to avoid keeping the invoking thread from dispatching to other completion handlers.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Invoked each time an intermediate response is returned from the Directory Server.
-
Method Details
-
handleIntermediateResponse
Invoked each time an intermediate response is returned from the Directory Server.- Parameters:
response
- The intermediate response.- Returns:
true
if this handler should continue to be notified of any remaining intermediate responses, orfalse
if the remaining responses should be skipped for some reason (e.g. a client side size limit has been reached).
-