Package net.engio.mbassy.messages

Examples of net.engio.mbassy.messages.TestMessage


        List<Object> listeners = listenerFactory.getAll();

        // this will subscribe the listeners concurrently to the bus
        TestUtil.setup(bus, listeners, 10);

        TestMessage message = new TestMessage();
        TestMessage subTestMessage = new SubTestMessage();

        bus.post(message).now();
        bus.post(subTestMessage).now();

        assertEquals(100, message.counter.get());
View Full Code Here


                .create(100, TestMessageHandler.class);

        // this will subscribe the listeners concurrently to the bus
        TestUtil.setup(bus, listeners, 10);

        TestMessage supertype = new TestMessage();
        TestMessage subtype = new SubTestMessage();

        bus.publish(supertype);
        bus.publish(subtype);

        assertEquals(100, subtype.counter.get());
View Full Code Here

TOP

Related Classes of net.engio.mbassy.messages.TestMessage

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.