public List < Watcher > getWatchers ( String name ) { synchronized ( watchers ) { if ( watchers . containsKey ( name ) ) { Set < Watcher > set = watchers . get ( name ) ; if ( set . size ( ) > 0 ) { return new ArrayList < Watcher > ( set ) ; } } } return null ; }
Get all Watchers of the Service by name .