/** * Sends the provided LDAP message to the server over this connection. * * @param message The LDAP message to send to the target server. * * @throws LDAPException If a problem occurs while sending the request. */ void sendMessage(final LDAPMessage message) throws LDAPException { if (needsReconnect.compareAndSet(true, false)) { reconnect(); } final LDAPConnectionInternals internals = connectionInternals; if (internals == null) { throw new LDAPException(ResultCode.SERVER_DOWN, ERR_CONN_NOT_ESTABLISHED.get()); } else { @SuppressWarnings("deprecation") final boolean autoReconnect = connectionOptions.autoReconnect(); internals.sendMessage(message, autoReconnect); lastCommunicationTime = System.currentTimeMillis(); } }
/** * Sends the provided LDAP message to the server over this connection. * * @param message The LDAP message to send to the target server. * * @throws LDAPException If a problem occurs while sending the request. */ void sendMessage(final LDAPMessage message) throws LDAPException { if (needsReconnect.compareAndSet(true, false)) { reconnect(); } final LDAPConnectionInternals internals = connectionInternals; if (internals == null) { throw new LDAPException(ResultCode.SERVER_DOWN, ERR_CONN_NOT_ESTABLISHED.get()); } else { @SuppressWarnings("deprecation") final boolean autoReconnect = connectionOptions.autoReconnect(); internals.sendMessage(message, autoReconnect); lastCommunicationTime = System.currentTimeMillis(); } }
connection.getConnectionOptions().autoReconnect(); return processSync(connection, depth, autoReconnect);
connection.getConnectionOptions().autoReconnect(); return processSync(connection, depth, autoReconnect);
connection.getConnectionOptions().autoReconnect(); return processSync(connection, depth, autoReconnect);
connection.getConnectionOptions().autoReconnect(); return processSync(connection, depth, autoReconnect);
connection.getConnectionOptions().autoReconnect(); return processSync(connection, depth, autoReconnect);
connection.getConnectionOptions().autoReconnect(); return processSync(connection, depth, autoReconnect);
connection.getConnectionOptions().autoReconnect(); return processSync(connection, depth, autoReconnect);
connection.getConnectionOptions().autoReconnect(); return processSync(connection, depth, autoReconnect);
connection.getConnectionOptions().autoReconnect(); return processSync(connection, depth, autoReconnect);
connection.getConnectionOptions().autoReconnect(); return processSync(connection, depth, autoReconnect);
connection.getConnectionOptions(); @SuppressWarnings("deprecation") final boolean autoReconnect = connectionOptions.autoReconnect(); final boolean closeRequested = connection.closeRequested(); if (autoReconnect && (! closeRequested))
connection.getConnectionOptions(); @SuppressWarnings("deprecation") final boolean autoReconnect = connectionOptions.autoReconnect(); final boolean closeRequested = connection.closeRequested(); if (autoReconnect && (! closeRequested))
connection.getConnectionOptions().autoReconnect(); return processSync(connection, autoReconnect);
connection.getConnectionOptions().autoReconnect(); return processSync(connection, autoReconnect);
@SuppressWarnings("deprecation") final boolean autoReconnect = connection.getConnectionOptions().autoReconnect(); if (! autoReconnect) @SuppressWarnings("deprecation") final boolean autoReconnect = connection.getConnectionOptions().autoReconnect(); if (! autoReconnect)
@SuppressWarnings("deprecation") final boolean autoReconnect = connection.getConnectionOptions().autoReconnect(); if (! autoReconnect) @SuppressWarnings("deprecation") final boolean autoReconnect = connection.getConnectionOptions().autoReconnect(); if (! autoReconnect)