@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class BasicAsyncCompareResultListener extends java.lang.Object implements AsyncCompareResultListener, java.io.Serializable
AsyncCompareResultListener
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 compare operation using the AsyncRequestID
as a
java.util.concurrent.Future
object.Constructor and Description |
---|
BasicAsyncCompareResultListener()
Creates a new instance of this class for use in processing a single
compare operation.
|
Modifier and Type | Method and Description |
---|---|
void |
compareResultReceived(AsyncRequestID requestID,
CompareResult compareResult)
Indicates that the provided LDAP result has been received in response to an
asynchronous compare operation.
|
CompareResult |
getCompareResult()
Retrieves the result that has been received for the associated asynchronous
compare operation, if it has been received.
|
public BasicAsyncCompareResultListener()
@InternalUseOnly public void compareResultReceived(@NotNull AsyncRequestID requestID, @NotNull CompareResult compareResult)
compareResultReceived
in interface AsyncCompareResultListener
requestID
- The async request ID of the request for which the
response was received.compareResult
- The compare result that has been received.@Nullable public CompareResult getCompareResult()
null
if no response has been
received yet.