com.unboundid.ldap.sdk.LDAPConnection.synchronousMode()方法的使用及代码示例

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

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

LDAPConnection.synchronousMode介绍

[英]Indicates whether this connection is operating in synchronous mode.
[中]指示此连接是否在同步模式下运行。

代码示例

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

/**
 * {@inheritDoc}
 */
@Override()
protected ExtendedResult process(final LDAPConnection connection,
                 final int depth)
     throws LDAPException
{
 if (connection.synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_CANCEL_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return super.process(connection, depth);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

/**
 * {@inheritDoc}
 */
@Override()
protected ExtendedResult process(final LDAPConnection connection,
                 final int depth)
     throws LDAPException
{
 if (connection.synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_CANCEL_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return super.process(connection, depth);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

/**
 * Processes the provided search request as an asynchronous operation.
 *
 * @param  searchRequest  The search request to be processed.  It must not be
 *                        {@code null}, and it must be configured with a
 *                        search result listener that is also an
 *                        {@code AsyncSearchResultListener}.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If the provided search request does not have a
 *                         search result listener that is an
 *                         {@code AsyncSearchResultListener}, or if a problem
 *                         occurs while sending the request.
 */
public AsyncRequestID asyncSearch(final ReadOnlySearchRequest searchRequest)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncSearch((SearchRequest) searchRequest);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

/**
 * Processes the provided search request as an asynchronous operation.
 *
 * @param  searchRequest  The search request to be processed.  It must not be
 *                        {@code null}, and it must be configured with a
 *                        search result listener that is also an
 *                        {@code AsyncSearchResultListener}.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If the provided search request does not have a
 *                         search result listener that is an
 *                         {@code AsyncSearchResultListener}, or if a problem
 *                         occurs while sending the request.
 */
public AsyncRequestID asyncSearch(final ReadOnlySearchRequest searchRequest)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncSearch((SearchRequest) searchRequest);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

/**
 * Processes the provided modify request as an asynchronous operation.
 *
 * @param  modifyRequest   The modify request to be processed.  It must not be
 *                         {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the modify operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncModify(final ReadOnlyModifyRequest modifyRequest,
              final AsyncResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncModify((ModifyRequest) modifyRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

/**
 * Processes the provided modify DN request as an asynchronous operation.
 *
 * @param  modifyDNRequest  The modify DN request to be processed.  It must
 *                          not be {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the modify DN operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncModifyDN(
              final ReadOnlyModifyDNRequest modifyDNRequest,
              final AsyncResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncModifyDN((ModifyDNRequest) modifyDNRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

/**
 * Processes the provided add request as an asynchronous operation.
 *
 * @param  addRequest      The add request to be processed.  It must not be
 *                         {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the add operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncAdd(final ReadOnlyAddRequest addRequest,
                final AsyncResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncAdd((AddRequest) addRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

/**
 * Processes the provided delete request as an asynchronous operation.
 *
 * @param  deleteRequest   The delete request to be processed.  It must not be
 *                         {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the delete operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncDelete(final ReadOnlyDeleteRequest deleteRequest,
              final AsyncResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncDelete((DeleteRequest) deleteRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

/**
 * Processes the provided modify request as an asynchronous operation.
 *
 * @param  modifyRequest   The modify request to be processed.  It must not be
 *                         {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the modify operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncModify(final ReadOnlyModifyRequest modifyRequest,
              final AsyncResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncModify((ModifyRequest) modifyRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

/**
 * Processes the provided delete request as an asynchronous operation.
 *
 * @param  deleteRequest   The delete request to be processed.  It must not be
 *                         {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the delete operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncDelete(final ReadOnlyDeleteRequest deleteRequest,
              final AsyncResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncDelete((DeleteRequest) deleteRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

/**
 * Processes the provided compare request as an asynchronous operation.
 *
 * @param  compareRequest  The compare request to be processed.  It must not
 *                         be {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the compare operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncCompare(
              final ReadOnlyCompareRequest compareRequest,
              final AsyncCompareResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncCompare((CompareRequest) compareRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

/**
 * Processes the provided add request as an asynchronous operation.
 *
 * @param  addRequest      The add request to be processed.  It must not be
 *                         {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the add operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncAdd(final ReadOnlyAddRequest addRequest,
                final AsyncResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncAdd((AddRequest) addRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

/**
 * Processes the provided compare request as an asynchronous operation.
 *
 * @param  compareRequest  The compare request to be processed.  It must not
 *                         be {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the compare operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncCompare(
              final ReadOnlyCompareRequest compareRequest,
              final AsyncCompareResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncCompare((CompareRequest) compareRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

/**
 * Processes the provided modify DN request as an asynchronous operation.
 *
 * @param  modifyDNRequest  The modify DN request to be processed.  It must
 *                          not be {@code null}.
 * @param  resultListener  The async result listener to use to handle the
 *                         response for the modify DN operation.  It may be
 *                         {@code null} if the result is going to be obtained
 *                         from the returned {@code AsyncRequestID} object via
 *                         the {@code Future} API.
 *
 * @return  An async request ID that may be used to reference the operation.
 *
 * @throws  LDAPException  If a problem occurs while sending the request.
 */
public AsyncRequestID asyncModifyDN(
              final ReadOnlyModifyDNRequest modifyDNRequest,
              final AsyncResultListener resultListener)
    throws LDAPException
{
 if (synchronousMode())
 {
  throw new LDAPException(ResultCode.NOT_SUPPORTED,
     ERR_ASYNC_NOT_SUPPORTED_IN_SYNCHRONOUS_MODE.get());
 }
 return asyncModifyDN((ModifyDNRequest) modifyDNRequest, resultListener);
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

if (synchronousMode())

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

if (synchronousMode())

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

if (synchronousMode())

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

if (synchronousMode())

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

if (synchronousMode())

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

if (synchronousMode())

相关文章

LDAPConnection类方法