static void closeOthers ( final Queue active , final List < Queue > all ) { all . stream ( ) . filter ( next -> next != active ) . forEach ( Queue :: closeAndClear ) ; }
Close all queues except the active one