public interface Service
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning()
Checks if service is up and running.
|
void |
startService()
Starts the service in the background as a new thread.
|
void |
stopService()
Stops the service.
|
void |
stopService(long timeoutInMs)
Stops the service.
|
boolean |
waitTillRunning(long timeoutInMs)
Waits till service is up or timeout was reached.
|
void startService()
isRunning() and waitTillRunning(long) to check if service is up.void stopService()
void stopService(long timeoutInMs)
timeoutInMs - the timeout in millisecondsboolean isRunning()
boolean waitTillRunning(long timeoutInMs)
throws InterruptedException
timeoutInMs - the timeout in millisecondsInterruptedException - if interrupted while waiting.Copyright © 2006–2017 Icegreen Technologies. All rights reserved.