mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Update javadocs.
This commit is contained in:
@@ -7,9 +7,21 @@ import java.util.concurrent.Executor;
|
|||||||
@NotNullByDefault
|
@NotNullByDefault
|
||||||
public interface AndroidWakeLockManager {
|
public interface AndroidWakeLockManager {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a wake lock with the given tag. The tag is only used for
|
||||||
|
* logging; the underlying OS wake lock will use its own tag.
|
||||||
|
*/
|
||||||
AndroidWakeLock createWakeLock(String tag);
|
AndroidWakeLock createWakeLock(String tag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Runs the given task while holding a wake lock.
|
||||||
|
*/
|
||||||
void runWakefully(Runnable r, String tag);
|
void runWakefully(Runnable r, String tag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Submits the given task to the given executor while holding a wake lock.
|
||||||
|
* The lock is released when the task completes, or if an exception is
|
||||||
|
* thrown while submitting or running the task.
|
||||||
|
*/
|
||||||
void executeWakefully(Runnable r, Executor executor, String tag);
|
void executeWakefully(Runnable r, Executor executor, String tag);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,9 +8,6 @@ import java.util.concurrent.TimeUnit;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A service that can be used to schedule the execution of tasks.
|
* A service that can be used to schedule the execution of tasks.
|
||||||
* <p>
|
|
||||||
* The service should only be used for running tasks on other executors
|
|
||||||
* at scheduled times. No significant work should be run by the service itself.
|
|
||||||
*/
|
*/
|
||||||
@NotNullByDefault
|
@NotNullByDefault
|
||||||
public interface TaskScheduler {
|
public interface TaskScheduler {
|
||||||
|
|||||||
Reference in New Issue
Block a user