private boolean isInZkWathcedNamespacePaths ( String path ) { if ( StringUtil . isEmpty ( path ) ) { return false ; } for ( String watchNamespacePath : RpcClientConf . ZK_WATCH_NAMESPACE_PATHS ) { if ( StringUtil . isEmpty ( watchNamespacePath ) ) { continue ; } if ( path . contains ( watchNamespacePath ) ) { return true ; } } return false ; }
Check if the changed path is in the watched paths that the client should care