public void requestResource ( List < ResourceRequestInfo > requestList ) { if ( deleted ) { throw new RuntimeException ( "Session: " + sessionId + " has been deleted" ) ; } for ( ResourceRequestInfo req : requestList ) { boolean newRequest = idToRequest . put ( req . getId ( ) , req ) == null ; if ( ! newRequest ) { LOG . warn ( "Duplicate request from Session: " + sessionId + "" + " request: " + req . getId ( ) ) ; continue ; } incrementRequestCount ( req . getType ( ) , 1 ) ; addPendingRequest ( req ) ; setTypeRequested ( req . getType ( ) ) ; } }
Request a list of resources