/** * Close the Adapter identified by the provided Key if it exists * * @param key : Adapter identifier */ public void close(final String key) { Optional.ofNullable(registered.get(key)) .ifPresent(a -> a.close()); }
/** * Close the Adapter identified by the provided Key if it exists * * @param key : Adapter identifier */ public void close(final String key) { Optional.ofNullable(registered.get(key)) .ifPresent(a -> a.close()); }