Package net.engio.mbassy.bus.config

Examples of net.engio.mbassy.bus.config.BusConfiguration


        for(MessageTypes mes : MessageTypes.values())
            mes.reset();
    }

    public static IBusConfiguration SyncAsync() {
        return new BusConfiguration()
            .addFeature(Feature.SyncPubSub.Default())
            .addFeature(Feature.AsynchronousHandlerInvocation.Default())
            .addFeature(Feature.AsynchronousMessageDispatch.Default());
    }
View Full Code Here


     * multi-threading will occur.
     *
     * @return
     */
    public static SyncMessageBus SynchronousOnly(){
        BusConfiguration syncPubSubCfg = new BusConfiguration();
        syncPubSubCfg.addFeature(Feature.SyncPubSub.Default());
        return new SyncMessageBus(syncPubSubCfg);
    }
View Full Code Here

     *
     *
     * @return
     */
    public static IMessageBus AsynchronousSequentialFIFO(){
        BusConfiguration asyncFIFOConfig = new BusConfiguration();
        asyncFIFOConfig.addFeature(Feature.SyncPubSub.Default());
        asyncFIFOConfig.addFeature(Feature.AsynchronousHandlerInvocation.Default(1, 1));
        asyncFIFOConfig.addFeature(Feature.AsynchronousMessageDispatch.Default().setNumberOfMessageDispatchers(1));
        return new MBassador(asyncFIFOConfig);
    }
View Full Code Here

    public MBassador(IBusConfiguration configuration) {
        super(configuration);
    }

    public MBassador(){
        super(new BusConfiguration()
            .addFeature(Feature.SyncPubSub.Default())
            .addFeature(Feature.AsynchronousHandlerInvocation.Default())
            .addFeature(Feature.AsynchronousMessageDispatch.Default()));
    }
View Full Code Here

TOP

Related Classes of net.engio.mbassy.bus.config.BusConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.