Package org.openhab.core.events
Interface EventPublisher
@NonNullByDefault
public interface EventPublisher
The
EventPublisher posts Events through the openHAB event bus in an asynchronous way.
Posted events can be received by implementing the EventSubscriber callback interface.- Author:
- Stefan Bußweiler - Initial contribution
-
Method Summary
-
Method Details
-
post
Posts an event through the event bus in an asynchronous way.- Parameters:
event- the event posted through the event bus- Throws:
IllegalArgumentException- if the event is nullIllegalArgumentException- if one of the event properties type, payload or topic is nullIllegalStateException- if the underlying event bus module is not available
-