void decreaseNumberOfPendingInstances ( final InstanceType instanceType ) { Integer numberOfRemainingInstances = this . pendingRequests . get ( instanceType ) ; if ( numberOfRemainingInstances == null ) { return ; } numberOfRemainingInstances = Integer . valueOf ( numberOfRemainingInstances . intValue ( ) - 1 ) ; if ( numberOfRemainingInstances . intValue ( ) == 0 ) { this . pendingRequests . remove ( instanceType ) ; } else { this . pendingRequests . put ( instanceType , numberOfRemainingInstances ) ; } }
Decreases the number of remaining instances to request of the given type .