mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 13:19:52 +01:00
Add javadoc.
This commit is contained in:
@@ -4,5 +4,12 @@ import java.io.InputStream;
|
|||||||
|
|
||||||
public interface TimeoutMonitor {
|
public interface TimeoutMonitor {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns an {@link InputStream} that wraps the given stream and allows
|
||||||
|
* read timeouts to be detected.
|
||||||
|
*
|
||||||
|
* @param timeoutMs The read timeout in milliseconds. Timeouts will be
|
||||||
|
* detected eventually but are not guaranteed to be detected immediately.
|
||||||
|
*/
|
||||||
InputStream createTimeoutInputStream(InputStream in, long timeoutMs);
|
InputStream createTimeoutInputStream(InputStream in, long timeoutMs);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user