Refactored PluginManager and Poller to remove non-open calls. Bug #15.

This commit is contained in:
akwizgran
2014-11-08 15:40:51 +00:00
parent c2d6e9afde
commit 4009561996
5 changed files with 33 additions and 33 deletions

View File

@@ -2,9 +2,15 @@ package org.briarproject.api.lifecycle;
public interface Service {
/** Starts the service and returns true if it started successfully. */
/**
* 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. */
/**
* Stops the service and returns true if it stopped successfully.
* This method must not be called concurrently with {@link #start()}.
*/
public boolean stop();
}