|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.unboundid.ldap.sdk.BasicAsyncCompareResultListener
@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class BasicAsyncCompareResultListener
This class provides a basic implementation of the
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 Summary | |
|---|---|
BasicAsyncCompareResultListener()
Creates a new instance of this class for use in processing a single compare operation. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicAsyncCompareResultListener()
| Method Detail |
|---|
@InternalUseOnly
public void compareResultReceived(AsyncRequestID requestID,
CompareResult compareResult)
compareResultReceived in interface AsyncCompareResultListenerrequestID - The async request ID of the request for which the
response was received.compareResult - The compare result that has been received.public CompareResult getCompareResult()
null if no response has been
received yet.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||