void addRequest ( final InstanceType instanceType , final int numberOfInstances ) { Integer numberOfRemainingInstances = this . pendingRequests . get ( instanceType ) ; if ( numberOfRemainingInstances == null ) { numberOfRemainingInstances = Integer . valueOf ( numberOfInstances ) ; } else { numberOfRemainingInstances = Integer . valueOf ( numberOfRemainingInstances . intValue ( ) + numberOfInstances ) ; } this . pendingRequests . put ( instanceType , numberOfRemainingInstances ) ; }
Adds the a pending request for the given number of instances of the given type to this map .