private void updateDeployGroupCache ( final ChannelServiceAccess model ) { // this will simply rebuild the complete map // clear first this . deployKeysMap . clear ( ) ; // fill afterwards for ( final Map . Entry < String , Set < String > > entry : model . getDeployGroupMap ( ) . entrySet ( ) ) { final String channelId = entry . getKey ( ) ; final List < DeployGroup > groups = entry . getValue ( ) . stream ( ) . map ( groupId -> model . getDeployGroup ( groupId ) ) . collect ( Collectors . toList ( ) ) ; this . deployKeysMap . putAll ( channelId , groups ) ; } }
Update the channel to deploy group cache map