Package com.powsybl.afs.storage
Interface EventsBus
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
InMemoryEventsBus
public interface EventsBus extends AutoCloseable
- Author:
- Chamseddine Benhamed
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addListener(AppStorageListener l)
Add a listener to the EventsBus.default void
close()
void
flush()
Flush any changes to underlying EventsBus.void
pushEvent(NodeEvent event, String topic)
Add a new event to the event busvoid
removeListener(AppStorageListener l)
remove a listener from the EventsBus.void
removeListeners()
Remove all listeners from the EventsBus.
-
-
-
Method Detail
-
pushEvent
void pushEvent(NodeEvent event, String topic)
Add a new event to the event bus- Parameters:
event
-topic
-
-
addListener
void addListener(AppStorageListener l)
Add a listener to the EventsBus.
-
removeListener
void removeListener(AppStorageListener l)
remove a listener from the EventsBus.
-
removeListeners
void removeListeners()
Remove all listeners from the EventsBus.
-
flush
void flush()
Flush any changes to underlying EventsBus.
-
close
default void close()
- Specified by:
close
in interfaceAutoCloseable
-
-