mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Make RendezvousEndpoint closeable.
This commit is contained in:
@@ -2,13 +2,14 @@ package org.briarproject.bramble.api.rendezvous;
|
|||||||
|
|
||||||
import org.briarproject.bramble.api.properties.TransportProperties;
|
import org.briarproject.bramble.api.properties.TransportProperties;
|
||||||
|
|
||||||
|
import java.io.Closeable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An interface for making and accepting rendezvous connections with a pending
|
* An interface for making and accepting rendezvous connections with a pending
|
||||||
* contact over a given transport.
|
* contact over a given transport.
|
||||||
*/
|
*/
|
||||||
public interface RendezvousEndpoint {
|
public interface RendezvousEndpoint extends Closeable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a set of transport properties for connecting to the pending
|
* Returns a set of transport properties for connecting to the pending
|
||||||
@@ -20,5 +21,6 @@ public interface RendezvousEndpoint {
|
|||||||
* Closes the handler and releases any resources held by it, such as
|
* Closes the handler and releases any resources held by it, such as
|
||||||
* network sockets.
|
* network sockets.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
void close() throws IOException;
|
void close() throws IOException;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user