public class BaseBuilder<T extends BaseBuilder<T>> extends Object
| Modifier and Type | Method and Description |
|---|---|
EventBus |
build() |
T |
id(String busId)
Identifies a bus.
|
T |
onError(ErrorListener listener)
Registers an
ErrorListener to handle exceptions thrown by EventListener. |
public T id(String busId)
busId - An identifier to use for this buspublic T onError(ErrorListener listener)
ErrorListener to handle exceptions thrown by EventListener. By default, exceptions are rethrown.listener - The listener to use. Some default implementations are provided.public EventBus build() throws EventBusException
EventBusExceptionCopyright © 2020. All rights reserved.