All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ldaptive.provider.unboundid.UnboundIDSyncProvider Maven / Gradle / Ivy

There is a newer version: 1.2.4
Show newest version
/* See LICENSE for licensing and NOTICE for copyright. */
package org.ldaptive.provider.unboundid;

import com.unboundid.ldap.sdk.LDAPConnectionOptions;
import org.ldaptive.ConnectionConfig;

/**
 * UnboundID provider implementation that uses synchronous options. Attempting to use connections by this provider in an
 * asynchronous manner with throw exceptions.
 *
 * @author  Middleware Services
 */
public class UnboundIDSyncProvider extends UnboundIDProvider
{


  @Override
  protected LDAPConnectionOptions getDefaultLDAPConnectionOptions(final ConnectionConfig cc)
  {
    final LDAPConnectionOptions options = super.getDefaultLDAPConnectionOptions(cc);
    options.setUseSynchronousMode(true);
    return options;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy