public static void doQuietly(Callable callable) { try { callable.call(); } catch (Exception ignored) { } }
public static void doQuietly(Callable callable) { try { callable.call(); } catch (Exception ignored) { } }
@Override public void onObserved(EventInfo eventInfo) { if (callback != null) { try { callback.call(); } catch (Exception e) { LOGGER.warn("Call shutdown hook {} error", name, e); } } } }), EcTopic.NODE_SHUT_DOWN);
public static void doWithInfo(Callable callable) { try { callable.call(); } catch (Exception e) { LOGGER.info(e.getMessage(), e); } }
@Override public void onObserved(EventInfo eventInfo) { if (callback != null) { try { callback.call(); } catch (Exception e) { LOGGER.warn("Call shutdown hook {} error", name, e); } } } }), EcTopic.NODE_SHUT_DOWN);
public static void doWithInfo(Callable callable) { try { callable.call(); } catch (Exception e) { LOGGER.info(e.getMessage(), e); } }
public static void doWithError(Callable callable) { try { callable.call(); } catch (Exception e) { LOGGER.error(e.getMessage(), e); } }
public static void doWithError(Callable callable) { try { callable.call(); } catch (Exception e) { LOGGER.error(e.getMessage(), e); } }
public static void doWithWarn(Callable callable) { try { callable.call(); } catch (Exception e) { LOGGER.warn(e.getMessage(), e); } }
public static void doWithWarn(Callable callable) { try { callable.call(); } catch (Exception e) { LOGGER.warn(e.getMessage(), e); } }
public static void doQuietly(Callable callable) { try { callable.call(); } catch (Exception ignored) { } }
public static void doWithWarn(Callable callable) { try { callable.call(); } catch (Exception e) { LOGGER.warn(e.getMessage(), e); } }
@Override public void onObserved(EventInfo eventInfo) { if (callback != null) { try { callback.call(); } catch (Exception e) { LOGGER.warn("Call shutdown hook {} error", name, e); } } } }), EcTopic.NODE_SHUT_DOWN);
public static void doWithInfo(Callable callable) { try { callable.call(); } catch (Exception e) { LOGGER.info(e.getMessage(), e); } }
public static void doWithError(Callable callable) { try { callable.call(); } catch (Exception e) { LOGGER.error(e.getMessage(), e); } }