org.terracotta.ipceventbus.event
Class BaseBuilder<T extends BaseBuilder<T>>
java.lang.Object
org.terracotta.ipceventbus.event.BaseBuilder<T>
- Direct Known Subclasses:
- EventBus.Builder, EventBusClient.Builder, EventBusServer.Builder
public class BaseBuilder<T extends BaseBuilder<T>>
- extends Object
- Author:
- Mathieu Carbou
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
public T id(String busId)
- Identifies a bus. If no ID is given, a generated one will be given.
- Parameters:
busId - An identifier to use for this bus
- Returns:
- this builder
onError
public T onError(ErrorListener listener)
- Registers an
ErrorListener to handle exceptions thrown by EventListener. By default, exceptions are rethrown.
- Parameters:
listener - The listener to use. Some default implementations are provided.
- Returns:
- this builder
build
public EventBus build()
throws EventBusException
- Throws:
EventBusException
Copyright © 2015. All rights reserved.