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

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

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

LDAPConnection.asyncDelete介绍

[英]Processes the provided delete request as an asynchronous operation.
[中]

代码示例

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

/**
 * Processes the provided delete request as an asynchronous operation.
 *
 * @param  deleteRequest   The delete request to be processed.  It must not be
 *                         {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the delete 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 asyncDelete(final ReadOnlyDeleteRequest deleteRequest,
              final AsyncResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncDelete((DeleteRequest) deleteRequest, resultListener);
}

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

/**
 * Processes the provided delete request as an asynchronous operation.
 *
 * @param  deleteRequest   The delete request to be processed.  It must not be
 *                         {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the delete 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 asyncDelete(final ReadOnlyDeleteRequest deleteRequest,
              final AsyncResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncDelete((DeleteRequest) deleteRequest, resultListener);
}

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

break;
case DELETE:
 requestID = conn.asyncDelete((DeleteRequest) r, null);
 break;
case MODIFY:

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

break;
case DELETE:
 requestID = conn.asyncDelete((DeleteRequest) r, null);
 break;
case MODIFY:

相关文章

LDAPConnection类方法