@Override
            public void onObserved(EventInfo eventInfo) {
                if (callback != null) {
                    try {
                        callback.call();
                    } catch (Exception e) {
                        LOGGER.warn("Call shutdown hook {} error", name, e);
                    }
                }
            }
@author Robert HG (254963746@qq.com) on 3/14/16.
lts-core/src/main/java/com/github/ltsopensource/core/support/NodeShutdownHook.java