com.unboundid.ldap.sdk.LDAPConnection.asyncCompare()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(83)

本文整理了Java中com.unboundid.ldap.sdk.LDAPConnection.asyncCompare()方法的一些代码示例,展示了LDAPConnection.asyncCompare()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LDAPConnection.asyncCompare()方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.LDAPConnection
类名称:LDAPConnection
方法名:asyncCompare

LDAPConnection.asyncCompare介绍

[英]Processes the provided compare request as an asynchronous operation.
[中]将提供的比较请求作为异步操作处理。

代码示例

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

/**
 * Processes the provided compare request as an asynchronous operation.
 *
 * @param  compareRequest  The compare request to be processed.  It must not
 *                         be {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the compare operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncCompare(
              final ReadOnlyCompareRequest compareRequest,
              final AsyncCompareResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncCompare((CompareRequest) compareRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

/**
 * Processes the provided compare request as an asynchronous operation.
 *
 * @param  compareRequest  The compare request to be processed.  It must not
 *                         be {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the compare operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncCompare(
              final ReadOnlyCompareRequest compareRequest,
              final AsyncCompareResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncCompare((CompareRequest) compareRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

break;
case COMPARE:
 requestID = conn.asyncCompare((CompareRequest) r, null);
 break;
case DELETE:

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

break;
case COMPARE:
 requestID = conn.asyncCompare((CompareRequest) r, null);
 break;
case DELETE:

相关文章

LDAPConnection类方法