mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +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 java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* An interface for making and accepting rendezvous connections with a pending
|
||||
* contact over a given transport.
|
||||
*/
|
||||
public interface RendezvousEndpoint {
|
||||
public interface RendezvousEndpoint extends Closeable {
|
||||
|
||||
/**
|
||||
* 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
|
||||
* network sockets.
|
||||
*/
|
||||
@Override
|
||||
void close() throws IOException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user