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

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

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

LDAPConnection.asyncSearch介绍

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

代码示例

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

/**
 * Processes the provided search request as an asynchronous operation.
 *
 * @param  searchRequest  The search request to be processed.  It must not be
 *                        {@code null}, and it must be configured with a
 *                        search result listener that is also an
 *                        {@code AsyncSearchResultListener}.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If the provided search request does not have a
 *                         search result listener that is an
 *                         {@code AsyncSearchResultListener}, or if a problem
 *                         occurs while sending the request.
 */
public AsyncRequestID asyncSearch(final ReadOnlySearchRequest searchRequest)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncSearch((SearchRequest) searchRequest);
}

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

/**
 * Processes the provided search request as an asynchronous operation.
 *
 * @param  searchRequest  The search request to be processed.  It must not be
 *                        {@code null}, and it must be configured with a
 *                        search result listener that is also an
 *                        {@code AsyncSearchResultListener}.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If the provided search request does not have a
 *                         search result listener that is an
 *                         {@code AsyncSearchResultListener}, or if a problem
 *                         occurs while sending the request.
 */
public AsyncRequestID asyncSearch(final ReadOnlySearchRequest searchRequest)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncSearch((SearchRequest) searchRequest);
}

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

searchRequest.getTimeLimitSeconds(), searchRequest.typesOnly(),
   searchRequest.getFilter(), searchRequest.getAttributes());
asyncRequestID = connection.asyncSearch(r);

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

connection.asyncSearch(r);

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

try
 asyncRequestID = conn.asyncSearch(searchRequest);
 result = asyncRequestID.get();
 asyncRequestID = conn.asyncSearch(searchRequest);
 result = asyncRequestID.get();

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

break;
case SEARCH:
 requestID = conn.asyncSearch((SearchRequest) r);
 break;

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

break;
case SEARCH:
 requestID = conn.asyncSearch((SearchRequest) r);
 break;

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

results.setAsyncRequestID(conn.asyncSearch(searchRequest));
return results;

相关文章

LDAPConnection类方法