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

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

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

LdapConnection.abandon介绍

[英]Abandons a request submitted to the server for performing a particular operation. The abandonRequest is always non-blocking, because no response is expected
[中]放弃为执行特定操作而提交给服务器的请求。放弃请求总是非阻塞的,因为不需要响应

代码示例

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

/**
 * {@inheritDoc}
 */
@Override
public void abandon( int messageId )
{
  connection.abandon( messageId );
}

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

/**
 * {@inheritDoc}
 */
@Override
public void abandon( int messageId )
{
  connection.abandon( messageId );
}

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

/**
 * {@inheritDoc}
 */
@Override
public void abandon( int messageId )
{
  connection.abandon( messageId );
}

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

/**
 * {@inheritDoc}
 */
@Override
public void abandon( AbandonRequest abandonRequest )
{
  connection.abandon( abandonRequest );
}

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

/**
 * {@inheritDoc}
 */
@Override
public void abandon( AbandonRequest abandonRequest )
{
  connection.abandon( abandonRequest );
}

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

/**
 * {@inheritDoc}
 */
@Override
public void abandon( AbandonRequest abandonRequest )
{
  connection.abandon( abandonRequest );
}

代码示例来源: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-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.client.ldap/ldap-client-api

/**
 * {@inheritDoc}
 */
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.doesFutureExistFor( 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;
}

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

abandon( bindRequest.getMessageId() );
abandon( bindRequest.getMessageId() );

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

abandon( modDnRequest.getMessageId() );
abandon( modDnRequest.getMessageId() );

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

abandon( addRequest.getMessageId() );
abandon( addRequest.getMessageId() );

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

abandon( modRequest.getMessageId() );
abandon( modRequest.getMessageId() );

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

abandon( compareRequest.getMessageId() );
abandon( compareRequest.getMessageId() );

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

abandon( deleteRequest.getMessageId() );
abandon( deleteRequest.getMessageId() );

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

abandon( extendedRequest.getMessageId() );
abandon( extendedRequest.getMessageId() );

相关文章