This method of the Service Class determines the wait hint.
public synchronized int getWaitHint();
Returns the service wait hint.
The wait hint value specifies the number of milliseconds the service is likely to remain in the current pending state. If the service exceeds this value, the service will be terminated if the assassin is enabled.