本文整理了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
[英]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;
}
内容来源于网络,如有侵权,请联系作者删除!