public Set < String > getKeySet ( ) { HashSet < String > result = new HashSet <> ( ) ; for ( PollingDynamicConfig config : children ) { Iterator < String > iter = config . getKeys ( ) ; while ( iter . hasNext ( ) ) { String key = iter . next ( ) ; result . add ( key ) ; } } return result ; }
Return a set of all unique keys tracked by any child of this composite . This can be an expensive operations as it requires iterating through all of the children .