/** * Sets the connection strategy. * * @param strategy for making connections */ public void setConnectionStrategy(final ConnectionStrategy strategy) { checkImmutable(); logger.trace("setting connectionStrategy: {}", strategy); connectionStrategy = strategy; }
/** * Sets whether the SSL protocol will be used for connections. * * @param b whether the SSL protocol will be used */ public void setUseSSL(final boolean b) { checkImmutable(); logger.trace("setting useSSL: {}", b); useSSL = b; }
/** * Sets whether startTLS will be used for connections. * * @param b whether startTLS will be used */ public void setUseStartTLS(final boolean b) { checkImmutable(); logger.trace("setting useStartTLS: {}", b); useStartTLS = b; }
/** * Sets the ssl config. * * @param config ssl config */ public void setSslConfig(final SslConfig config) { checkImmutable(); logger.trace("setting sslConfig: {}", config); sslConfig = config; }
/** * Sets the connection initializer. * * @param initializer connection initializer */ public void setConnectionInitializer(final ConnectionInitializer initializer) { checkImmutable(); logger.trace("setting connectionInitializer: {}", initializer); connectionInitializer = initializer; }
/** * Sets the maximum amount of time in milliseconds that operations will wait for a response. * * @param time timeout for responses */ public void setResponseTimeout(final long time) { checkImmutable(); logger.trace("setting responseTimeout: {}", time); responseTimeout = time; }
/** * Sets whether startTLS will be used for connections. * * @param b whether startTLS will be used */ public void setUseStartTLS(final boolean b) { checkImmutable(); logger.trace("setting useStartTLS: {}", b); useStartTLS = b; }
/** * Sets the ssl config. * * @param config ssl config */ public void setSslConfig(final SslConfig config) { checkImmutable(); logger.trace("setting sslConfig: {}", config); sslConfig = config; }
/** * Sets whether the SSL protocol will be used for connections. * * @param b whether the SSL protocol will be used */ public void setUseSSL(final boolean b) { checkImmutable(); logger.trace("setting useSSL: {}", b); useSSL = b; }
/** * Sets the maximum amount of time in milliseconds that connects will block. * * @param time timeout for connects */ public void setConnectTimeout(final long time) { checkImmutable(); logger.trace("setting connectTimeout: {}", time); connectTimeout = time; }
/** * Sets the connection initializer. * * @param initializer connection initializer */ public void setConnectionInitializer(final ConnectionInitializer initializer) { checkImmutable(); logger.trace("setting connectionInitializer: {}", initializer); connectionInitializer = initializer; }
/** * Sets whether the SSL protocol will be used for connections. * * @param b whether the SSL protocol will be used */ public void setUseSSL(final boolean b) { checkImmutable(); logger.trace("setting useSSL: {}", b); useSSL = b; }
/** * Sets whether startTLS will be used for connections. * * @param b whether startTLS will be used */ public void setUseStartTLS(final boolean b) { checkImmutable(); logger.trace("setting useStartTLS: {}", b); useStartTLS = b; }
/** * Sets the connection initializer. * * @param initializer connection initializer */ public void setConnectionInitializer(final ConnectionInitializer initializer) { checkImmutable(); logger.trace("setting connectionInitializer: {}", initializer); connectionInitializer = initializer; }
/** * Sets the connection strategy. * * @param strategy for making connections */ public void setConnectionStrategy(final ConnectionStrategy strategy) { checkImmutable(); logger.trace("setting connectionStrategy: {}", strategy); connectionStrategy = strategy; }
/** * Sets the ssl config. * * @param config ssl config */ public void setSslConfig(final SslConfig config) { checkImmutable(); logger.trace("setting sslConfig: {}", config); sslConfig = config; }
/** * Sets the ldap url. * * @param url of the ldap */ public void setLdapUrl(final String url) { checkImmutable(); checkStringInput(url, true); logger.trace("setting ldapUrl: {}", url); ldapUrl = url; }
/** * Sets the ldap url. * * @param url of the ldap */ public void setLdapUrl(final String url) { checkImmutable(); checkStringInput(url, true); logger.trace("setting ldapUrl: {}", url); ldapUrl = url; }
/** * Sets the ldap url. * * @param url of the ldap */ public void setLdapUrl(final String url) { checkImmutable(); checkStringInput(url, true); logger.trace("setting ldapUrl: {}", url); ldapUrl = url; }
/** * Sets the maximum amount of time that connects will block. * * @param time timeout for connects */ public void setConnectTimeout(final Duration time) { checkImmutable(); if (time != null && time.isNegative()) { throw new IllegalArgumentException("Connect timeout cannot be negative"); } logger.trace("setting connectTimeout: {}", time); connectTimeout = time; }