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