mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
19 lines
431 B
Java
19 lines
431 B
Java
package org.briarproject.api.sync;
|
|
|
|
import java.io.IOException;
|
|
|
|
public interface MessagingSession {
|
|
|
|
/**
|
|
* Runs the session. This method returns when there are no more packets to
|
|
* send or receive, or when the {@link #interrupt()} method has been called.
|
|
*/
|
|
void run() throws IOException;
|
|
|
|
/**
|
|
* Interrupts the session, causing the {@link #run()} method to return at
|
|
* the next opportunity.
|
|
*/
|
|
void interrupt();
|
|
}
|