@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class BasicAsyncResultListener extends java.lang.Object implements AsyncResultListener, java.io.Serializable
AsyncResultListener
interface that will merely set the result object to a local variable that can
be accessed through a getter method. It provides a listener that may be
easily used when processing an asynchronous operation using the
AsyncRequestID
as a java.util.concurrent.Future
object.Constructor and Description |
---|
BasicAsyncResultListener()
Creates a new instance of this class for use in processing a single add,
delete, modify, or modify DN operation.
|
Modifier and Type | Method and Description |
---|---|
LDAPResult |
getLDAPResult()
Retrieves the result that has been received for the associated asynchronous
operation, if it has been received.
|
void |
ldapResultReceived(AsyncRequestID requestID,
LDAPResult ldapResult)
Indicates that the provided LDAP result has been received in response to an
asynchronous operation.
|
public BasicAsyncResultListener()
@InternalUseOnly public void ldapResultReceived(@NotNull AsyncRequestID requestID, @NotNull LDAPResult ldapResult)
ldapResultReceived
in interface AsyncResultListener
requestID
- The async request ID of the request for which the
response was received.ldapResult
- The LDAP result that has been received.@Nullable public LDAPResult getLDAPResult()
null
if no response has been received yet.