org.apache.directory.ldap.client.api.LdapConnection.isRequestCompleted()方法的使用及代码示例

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

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

LdapConnection.isRequestCompleted介绍

[英]Checks if a request has been completed, or not.
[中]检查请求是否已完成。

代码示例

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public boolean isRequestCompleted( int messageId )
{
  return connection.isRequestCompleted( messageId );
}

代码示例来源:origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public boolean isRequestCompleted( int messageId )
{
  return connection.isRequestCompleted( messageId );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-api

/**
 * {@inheritDoc}
 */
@Override
public boolean isRequestCompleted( int messageId )
{
  return connection.isRequestCompleted( messageId );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public boolean doesFutureExistFor( int messageId )
{
  return connection.isRequestCompleted( messageId );
}

代码示例来源:origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public boolean doesFutureExistFor( int messageId )
{
  return connection.isRequestCompleted( messageId );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-api

/**
 * {@inheritDoc}
 */
@Override
public boolean doesFutureExistFor( int messageId )
{
  return connection.isRequestCompleted( messageId );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public boolean cancel( boolean mayInterruptIfRunning )
{
  if ( cancelled )
  {
    return cancelled;
  }
  // set the cancel flag first
  cancelled = true;
  // Send an abandonRequest only if this future exists
  if ( !connection.isRequestCompleted( messageId ) )
  {
    connection.abandon( messageId );
  }
  // then clear the queue, cause the might be some incoming messages before this abandon request
  // hits the server
  queue.clear();
  return cancelled;
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-api

/**
 * {@inheritDoc}
 */
@Override
public boolean cancel( boolean mayInterruptIfRunning )
{
  if ( cancelled )
  {
    return cancelled;
  }
  // set the cancel flag first
  cancelled = true;
  // Send an abandonRequest only if this future exists
  if ( !connection.isRequestCompleted( messageId ) )
  {
    connection.abandon( messageId );
  }
  // then clear the queue, cause the might be some incoming messages before this abandon request
  // hits the server
  queue.clear();
  return cancelled;
}

代码示例来源:origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public boolean cancel( boolean mayInterruptIfRunning )
{
  if ( cancelled )
  {
    return cancelled;
  }
  // set the cancel flag first
  cancelled = true;
  // Send an abandonRequest only if this future exists
  if ( !connection.isRequestCompleted( messageId ) )
  {
    connection.abandon( messageId );
  }
  // then clear the queue, cause the might be some incoming messages before this abandon request
  // hits the server
  queue.clear();
  return cancelled;
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-api

/**
 * {@inheritDoc}
 */
@Override
public boolean cancel( boolean mayInterruptIfRunning )
{
  if ( cancelled )
  {
    return cancelled;
  }
  // set the cancel flag first
  cancelled = true;
  // Send an abandonRequest only if this future exists
  if ( !connection.isRequestCompleted( messageId ) )
  {
    connection.abandon( messageId );
  }
  
  // Notify the future
  try
  { 
    set( null );
  }
  catch ( InterruptedException ie )
  {
    // Nothing we can do
  }
  return cancelled;
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public boolean cancel( boolean mayInterruptIfRunning )
{
  if ( cancelled )
  {
    return cancelled;
  }
  // set the cancel flag first
  cancelled = true;
  // Send an abandonRequest only if this future exists
  if ( !connection.isRequestCompleted( messageId ) )
  {
    connection.abandon( messageId );
  }
  
  // Notify the future
  try
  { 
    set( null );
  }
  catch ( InterruptedException ie )
  {
    // Nothing we can do
  }
  return cancelled;
}

代码示例来源:origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public boolean cancel( boolean mayInterruptIfRunning )
{
  if ( cancelled )
  {
    return cancelled;
  }
  // set the cancel flag first
  cancelled = true;
  // Send an abandonRequest only if this future exists
  if ( !connection.isRequestCompleted( messageId ) )
  {
    connection.abandon( messageId );
  }
  
  // Notify the future
  try
  { 
    set( null );
  }
  catch ( InterruptedException ie )
  {
    // Nothing we can do
  }
  return cancelled;
}

相关文章