Files
briar/briar-api/src/org/briarproject/api/lifecycle/Service.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();
}