public synchronized Collection < ContainerShutdownDescriptor > removeShutdownDescriptors ( GavLabel gavLabel ) { List < ContainerShutdownDescriptor > descriptors ; if ( gavLabel != null ) { descriptors = removeFromPomLabelMap ( gavLabel ) ; removeFromPerContainerMap ( descriptors ) ; } else { // All entries are requested descriptors = new ArrayList <> ( shutdownDescriptorPerContainerMap . values ( ) ) ; clearAllMaps ( ) ; } Collections . reverse ( descriptors ) ; return descriptors ; }
Get all shutdown descriptors for a given pom label and remove it from the tracker . The descriptors are returned in reverse order of their registration .