示例#1
0
 /**
  * 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()));
 }
示例#2
0
 /**
  * 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));
 }