/** * {@inheritDoc} */ @Override() public void close() { close(true, 1); }
/** * {@inheritDoc} */ @Override() public void close() { close(true, 1); }
@Override public void stop() { if (ldapConnectionPool != null) ldapConnectionPool.close(); }
/** * Closes this connection pool. All read and write connections currently held * in the pool that are not in use will be closed, and any outstanding * connections will be automatically closed when they are released back to the * pool. */ public void close() { readPool.close(); writePool.close(); }
@Override public void close() { this.pool.close(); }
/** * Closes this connection pool in the event that it becomes unreferenced. * * @throws Throwable If an unexpected problem occurs. */ @Override() protected void finalize() throws Throwable { super.finalize(); close(); }
@Override protected void handleRemovedElem(Map.Entry<LdapConfigBean, LDAPConnectionPool> eldest) { eldest.getValue().close(); } };
/** * Closes this connection pool in the event that it becomes unreferenced. * * @throws Throwable If an unexpected problem occurs. */ @Override() protected void finalize() throws Throwable { super.finalize(); close(); }
@Override protected void handleRemovedElem(Map.Entry<LdapConfigBean, LDAPConnectionPool> eldest) { eldest.getValue().close(); } };
/** * Shuts down this LDAP connector by releasing any associated resources * (LDAP connection pool). */ public void shutdown() { ldapConnPool.close(); if (ldapConnPool.isClosed()) { Loggers.MAIN_LOG.info("[IL0107] Shut down LDAP connector for {} cache", cacheName); } else { Loggers.MAIN_LOG.error("[IL0108] Attempted to shut down LDAP connector for {} cache, detected unreleased LDAP connections", cacheName); } } }
/** * Shuts down this LDAP connector by releasing any associated resources * (LDAP connection pool). */ public void shutdown() { ldapConnPool.close(); if (ldapConnPool.isClosed()) { Loggers.MAIN_LOG.info("[IL0107] Shut down LDAP connector for {} cache", cacheName); } else { Loggers.MAIN_LOG.error("[IL0108] Attempted to shut down LDAP connector for {} cache, detected unreleased LDAP connections", cacheName); } } }
readPool.close(); throw le;
connectionPool.close();