public void removeChannelFromCache ( long channelId ) { channels . computeIfPresent ( channelId , ( key , channel ) -> { if ( channel instanceof Cleanupable ) { ( ( Cleanupable ) channel ) . cleanup ( ) ; } return null ; } ) ; }
Removes a channel from the cache .