Added thread safety documentation to interfaces.

This commit is contained in:
akwizgran
2016-01-26 10:31:32 +00:00
parent f9aa5a4ef9
commit f2e1723b24
2 changed files with 8 additions and 0 deletions

View File

@@ -3,5 +3,9 @@ package org.briarproject.api.event;
/** An interface for receiving notifications when events occur. */
public interface EventListener {
/**
* Called when an event is broadcast. Implementations of this method must
* not block.
*/
void eventOccurred(Event e);
}