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

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

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

LDAPConnection.abandon介绍

[英]Sends an abandon request with the provided information.
[中]发送包含所提供信息的放弃请求。

代码示例

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

/**
 * Processes an abandon request with the provided information.
 *
 * @param  requestID  The async request ID for the request to abandon.
 *
 * @throws  LDAPException  If a problem occurs while sending the request to
 *                         the server.
 */
public void abandon(final AsyncRequestID requestID)
    throws LDAPException
{
 abandon(requestID, null);
}

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

/**
 * Processes an abandon request with the provided information.
 *
 * @param  requestID  The async request ID for the request to abandon.
 *
 * @throws  LDAPException  If a problem occurs while sending the request to
 *                         the server.
 */
public void abandon(final AsyncRequestID requestID)
    throws LDAPException
{
 abandon(requestID, null);
}

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

/**
 * Closes this LDAP entry source.
 *
 * @param  abandon  Indicates whether to attempt to abandon the search.
 */
private void closeInternal(final boolean abandon)
{
 addToQueue(END_OF_RESULTS);
 if (closed.compareAndSet(false, true))
 {
  if (abandon)
  {
   try
   {
    connection.abandon(asyncRequestID);
   }
   catch (Exception e)
   {
    debugException(e);
   }
  }
  if (closeConnection)
  {
   connection.close();
  }
 }
}

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

StaticUtils.NO_STRINGS, StaticUtils.NO_CONTROLS));
connection.abandon(this);

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

StaticUtils.NO_STRINGS, StaticUtils.NO_CONTROLS));
connection.abandon(this);

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

/**
 * Sends a request to abandon the request with the specified message ID.
 *
 * @param  id  The message ID of the operation to abandon.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public void abandon(final int id)
    throws LDAPException
{
 try
 {
  conn.abandon(InternalSDKHelper.createAsyncRequestID(id, conn),
         getControls(null));
 }
 catch (com.unboundid.ldap.sdk.LDAPException le)
 {
  debugException(le);
  throw new LDAPException(le);
 }
}

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

conn.abandon(requestID);

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

if (connection.getConnectionOptions().abandonOnTimeout())
 connection.abandon(messageID);

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

if (connection.getConnectionOptions().abandonOnTimeout())
 connection.abandon(messageID);

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

connection.getConnectionOptions().abandonOnTimeout())
connection.abandon(messageID);

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

connection.getConnectionOptions().abandonOnTimeout())
connection.abandon(messageID);

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

connection.getConnectionOptions().abandonOnTimeout())
connection.abandon(messageID);

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

connection.getConnectionOptions().abandonOnTimeout())
connection.abandon(messageID);

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

if (abandon)
 conn.abandon(helper.getAsyncRequestID());

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

if (abandon)
 conn.abandon(helper.getAsyncRequestID());

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

if (connection.getConnectionOptions().abandonOnTimeout())
 connection.abandon(messageID);

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

if (connection.getConnectionOptions().abandonOnTimeout())
 connection.abandon(messageID);

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

if (connection.getConnectionOptions().abandonOnTimeout())
 connection.abandon(messageID);

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

if (connection.getConnectionOptions().abandonOnTimeout())
 connection.abandon(messageID);

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

if (connection.getConnectionOptions().abandonOnTimeout())
 connection.abandon(messageID);

相关文章

LDAPConnection类方法