mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Separated event infrastructure from DB.
This commit is contained in:
13
briar-api/src/org/briarproject/api/event/EventBus.java
Normal file
13
briar-api/src/org/briarproject/api/event/EventBus.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package org.briarproject.api.event;
|
||||
|
||||
public interface EventBus {
|
||||
|
||||
/** Adds a listener to be notified when events occur. */
|
||||
void addListener(EventListener l);
|
||||
|
||||
/** Removes a listener. */
|
||||
void removeListener(EventListener l);
|
||||
|
||||
/** Notifies all listeners of an event. */
|
||||
void broadcast(Event e);
|
||||
}
|
||||
Reference in New Issue
Block a user