/** * Close all the open connections for the current thread. */ public static void close() { close(DEFAULT); }
/** * Close all the open connections for the current thread. */ public static void closeAll() { Map<String, Connection> map = localConnection.get(); if (map != null) { Set<String> keySet = new HashSet<>(map.keySet()); for (String name : keySet) { close(name); } } }