Interface Service
- All Known Subinterfaces:
DirectoryWatchService
- All Known Implementing Classes:
SimpleDirectoryWatchService
public interface Service
Interface definition for services.
-
Method Summary
-
Method Details
-
start
Starts the service. This method blocks until the service has completely started.- Throws:
Exception
- if there was a problem starting the service
-
stop
void stop()Stops the service. This method blocks until the service has completely shut down. -
isRunning
boolean isRunning()Checks to see if the service is still running.- Returns:
true
if the service is running,false
otherwise.
-