protected void stateChanged(int state) {
        for (StateListener stateListener : getSessionListeners()) {
            stateListener.stateChanged(state);
        }
    }
@author Robert HG (254963746@qq.com) on 7/8/14.
lts-core/src/main/java/com/github/ltsopensource/zookeeper/support/AbstractZkClient.java