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

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

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

LDAPConnection.asyncModifyDN介绍

[英]Processes the provided modify DN request as an asynchronous operation.
[中]将提供的修改DN请求作为异步操作处理。

代码示例

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

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

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

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

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

break;
case MODIFY_DN:
 requestID = conn.asyncModifyDN((ModifyDNRequest) r, null);
 break;
case SEARCH:

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

break;
case MODIFY_DN:
 requestID = conn.asyncModifyDN((ModifyDNRequest) r, null);
 break;
case SEARCH:

相关文章

LDAPConnection类方法