This method of the Service Class sets the sets the service to STOP_PENDING and the wait hint to waithint.
protected synchronized void setStopping(int waithint);
waithint | The estimated number of milliseconds it takes for the service to reach the STOPPED state. |