mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
17 lines
417 B
Java
17 lines
417 B
Java
package org.briarproject.api.lifecycle;
|
|
|
|
public interface Service {
|
|
|
|
/**
|
|
* Starts the service and returns true if it started successfully.
|
|
* This method must not be called concurrently with {@link #stop()}.
|
|
*/
|
|
public boolean start();
|
|
|
|
/**
|
|
* Stops the service and returns true if it stopped successfully.
|
|
* This method must not be called concurrently with {@link #start()}.
|
|
*/
|
|
public boolean stop();
|
|
}
|