mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Add timeout monitor for Bluetooth connections.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package org.briarproject.bramble.api.io;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
public interface TimeoutMonitor {
|
||||
|
||||
InputStream createTimeoutInputStream(InputStream in, long timeoutMs);
|
||||
}
|
||||
@@ -11,6 +11,11 @@ public interface Clock {
|
||||
*/
|
||||
long currentTimeMillis();
|
||||
|
||||
/**
|
||||
* @see System#nanoTime()
|
||||
*/
|
||||
long nanoTime();
|
||||
|
||||
/**
|
||||
* @see Thread#sleep(long)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user