本文整理了Java中com.novell.ldap.LDAPConnection.abandon()
方法的一些代码示例,展示了LDAPConnection.abandon()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LDAPConnection.abandon()
方法的具体详情如下:
包路径:com.novell.ldap.LDAPConnection
类名称:LDAPConnection
方法名:abandon
[英]Abandons an asynchronous operation.
[中]放弃异步操作。
代码示例来源:origin: com.novell.ldap/jldap
/**
*
* Abandons an asynchronous operation.
*
* @param id The ID of the asynchronous operation to abandon. The ID
* can be obtained from the response queue for the
* operation.
*
* @exception LDAPException A general exception which includes an error
* message and an LDAP error code.
*/
public void abandon(int id)
throws LDAPException
{
abandon(id, defSearchCons);
return;
}
代码示例来源:origin: com.novell.ldap/jldap
/**
*
*
* Notifies the server not to send additional results associated with
* this LDAPSearchResults object, and discards any results already
* received.
*
* @param results An object returned from a search.
*
* @exception LDAPException A general exception which includes an error
* message and an LDAP error code.
*/
public void abandon(LDAPSearchResults results)
throws LDAPException
{
abandon( results, defSearchCons );
return;
}
代码示例来源:origin: com.novell.ldap/jldap
/**
* Abandons all outstanding operations managed by the queue.
*
* <p>All operations in progress, which are managed by the specified queue,
* are abandoned.</p>
*
* @param queue The queue returned from an asynchronous request.
* All outstanding operations managed by the queue
* are abandoned, and the queue is emptied.
*
* @exception LDAPException A general exception which includes an error
* message and an LDAP error code.
*/
public void abandon( LDAPMessageQueue queue)
throws LDAPException
{
abandon( queue, defSearchCons);
return;
}
代码示例来源:origin: com.novell.ldap/jldap
/**
* Stop the Persistence Search Events Generation by abandoning the
* Search Request.
*
* @throws LDAPException When Cancelling of LDAPConnection Fails.
*/
public final void stopEventGeneration() throws LDAPException {
if (Debug.LDAP_DEBUG) {
Debug.trace(Debug.EventsCalls, "Closing EventGeneration");
}
isrunning = false;
ldapconnection.abandon(searchqueue);
}
}
代码示例来源:origin: com.novell.ldap/jldap
/**
*
* Abandons an asynchronous operation.
*
* @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(int)">
com.novell.ldap.LDAPConnection.abandon(int)</a>
*/
public void abandon(int id)
throws LDAPException
{
try {
conn.abandon( id);
} catch( com.novell.ldap.LDAPException ex) {
throw new LDAPException( ex);
}
return;
}
代码示例来源:origin: com.novell.ldap/jldap
/**
* Notifies the server not to send additional results associated with
* this LDAPSearchResults object, and discards any results already
* received.
*
* @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(com.novell.ldap.LDAPSearchResults)">
com.novell.ldap.LDAPConnection.abandon(LDAPSearchResults)</a>
*/
public void abandon(LDAPSearchResults results)
throws LDAPException
{
try {
if( results == null) {
conn.abandon( (com.novell.ldap.LDAPSearchResults)null);
} else {
conn.abandon( results.getWrappedObject());
}
} catch( com.novell.ldap.LDAPException ex) {
throw new LDAPException( ex);
}
return;
}
代码示例来源:origin: com.novell.ldap/jldap
/**
* Abandons all search operations for a queue.
*
* @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(com.novell.ldap.LDAPMessageQueue)">
com.novell.ldap.LDAPConnection.abandon(LDAPMessageQueue)</a>
*/
public void abandon( LDAPMessageQueue queue)
throws LDAPException
{
try {
if( queue instanceof LDAPResponseQueue) {
conn.abandon(((LDAPResponseQueue)queue).getWrappedObject());
} else
if( queue instanceof LDAPSearchQueue) {
conn.abandon(((LDAPSearchQueue)queue).getWrappedObject());
}
} catch( com.novell.ldap.LDAPException ex) {
throw new LDAPException( ex);
}
return;
}
代码示例来源:origin: com.novell.ldap/jldap
/**
* Abandons a search operation for a queue, using the specified
* constraints.
*
* @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(int, com.novell.ldap.LDAPConstraints)">
com.novell.ldap.LDAPConnection.abandon(int, LDAPConstraints)</a>
*/
public void abandon(int id, LDAPConstraints cons)
throws LDAPException
{
try {
conn.abandon( id,
cons.getWrappedObject());
} catch( com.novell.ldap.LDAPException ex) {
throw new LDAPException( ex);
}
return;
}
代码示例来源:origin: com.novell.ldap/jldap
/**
* Notifies the server not to send additional results associated with
* this LDAPSearchResults object, and discards any results already
* received.
*
* @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(com.novell.ldap.LDAPSearchResults,
com.novell.ldap.LDAPConstraints)">
com.novell.ldap.LDAPConnection.abandon(LDAPSearchResults,
LDAPConstraints)</a>
*/
public void abandon(LDAPSearchResults results, LDAPConstraints cons)
throws LDAPException
{
try {
if( results == null) {
conn.abandon( (com.novell.ldap.LDAPSearchResults)null,
cons.getWrappedObject());
} else {
conn.abandon( results.getWrappedObject(),
cons.getWrappedObject());
}
} catch( com.novell.ldap.LDAPException ex) {
throw new LDAPException( ex);
}
return;
}
代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core
if (searchResults != null) {
try {
this.connection.abandon(searchResults);
} catch (LDAPException e) {
if (LOG.isDebugEnabled()) {
代码示例来源:origin: com.novell.ldap/jldap
/**
* Abandons all search operations for a queue.
*
* @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(com.novell.ldap.LDAPMessageQueue,
com.novell.ldap.LDAPConstraints)">
com.novell.ldap.LDAPConnection.abandon(LDAPMessageQueue,
LDAPConstraints)</a>
*/
public void abandon( LDAPMessageQueue queue, LDAPConstraints cons)
throws LDAPException
{
try {
if( queue instanceof LDAPResponseQueue) {
conn.abandon(((LDAPResponseQueue)queue).getWrappedObject(),
cons.getWrappedObject());
} else
if( queue instanceof LDAPSearchQueue) {
conn.abandon(((LDAPSearchQueue)queue).getWrappedObject(),
cons.getWrappedObject());
}
} catch( com.novell.ldap.LDAPException ex) {
throw new LDAPException( ex);
}
return;
}
代码示例来源:origin: org.xwiki.platform/xwiki-platform-ldap-authenticator
if (result.hasMore()) {
try {
getConnection().getConnection().abandon(result);
} catch (LDAPException e) {
LOGGER.debug("LDAP Search clean up failed", e);
代码示例来源:origin: org.xwiki.platform/xwiki-platform-ldap-authenticator
if (searchResults != null) {
try {
this.connection.abandon(searchResults);
} catch (LDAPException e) {
LOGGER.debug("LDAP Search clean up failed", e);
代码示例来源:origin: org.xwiki.platform/xwiki-platform-ldap-authenticator
if (result.hasMore()) {
try {
getConnection().getConnection().abandon(result);
} catch (LDAPException e) {
LOGGER.debug("LDAP Search clean up failed", e);
内容来源于网络,如有侵权,请联系作者删除!