/** * Default constructor using default setup. super() will also add a default publication error * logger */ public MBassador() { this( new BusConfiguration() .addFeature(Feature.SyncPubSub.Default()) .addFeature(Feature.AsynchronousHandlerInvocation.Default()) .addFeature(Feature.AsynchronousMessageDispatch.Default())); }
/** * Construct with default settings and specified publication error handler * * @param errorHandler */ public MBassador(IPublicationErrorHandler errorHandler) { super( new BusConfiguration() .addFeature(Feature.SyncPubSub.Default()) .addFeature(Feature.AsynchronousHandlerInvocation.Default()) .addFeature(Feature.AsynchronousMessageDispatch.Default()) .addPublicationErrorHandler(errorHandler)); }