com.unboundid.ldap.sdk.LDAPConnectionOptions.autoReconnect() The use of auto-reconnect is strongly discouraged because it
is inherently fragile and can only work under very limited
circumstances. It is strongly recommended that a connection
pool be used instead of the auto-reconnect option, even in
cases where only a single connection is desired.
com.unboundid.ldap.sdk.LDAPConnectionOptions.setAutoReconnect(boolean) The use of auto-reconnect is strongly discouraged because it
is inherently fragile and can only work under very limited
circumstances. It is strongly recommended that a connection
pool be used instead of the auto-reconnect option, even in
cases where only a single connection is desired.