public interface BuckEventBus extends Closeable, EventDispatcher
This interface exists only to break circular Buck target dependencies.
Modifier and Type | Method and Description |
---|---|
BuildId |
getBuildId() |
void |
register(Object object)
Register a listener to process events
|
void |
unregister(Object object)
Remove a listener previously specified with
register() |
boolean |
waitEvents(long timeout)
Wait for all currently running events to dispatch and finish executing
|
post, post, postWithoutConfiguring, timestamp
BuildId getBuildId()
void register(Object object)
void unregister(Object object)
register()
boolean waitEvents(long timeout)
timeout
- Time in milliseconds to wait for completion, if timeout is not greater than 0
then it will wait indefinitely