protected < T , A > ActiveOperation < T , A > removeActiveOperation ( Integer id ) { final ActiveOperation < T , A > removed = removeUnderLock ( id ) ; if ( removed != null ) { for ( final Map . Entry < Integer , ActiveRequest < ? , ? > > requestEntry : requests . entrySet ( ) ) { final ActiveRequest < ? , ? > request = requestEntry . getValue ( ) ; if ( request . context == removed ) { requests . remove ( requestEntry . getKey ( ) ) ; } } } return removed ; }
Remove an active operation .