Examples of DemandForwardingBridgeSupport


Examples of org.apache.activemq.network.DemandForwardingBridgeSupport

        }
        waitForMessagesToBeDelivered();
        assertEquals("Got all messages", data.length, messages.size());

        BrokerService broker = (BrokerService) brokers.get("receiver");
        final DemandForwardingBridgeSupport bridge = (DemandForwardingBridgeSupport) broker.getNetworkConnectors().get(0).activeBridges().toArray()[0];
        assertTrue("No extra, size:" + bridge.getLocalSubscriptionMap().size(), Wait.waitFor(new Wait.Condition() {
            @Override
            public boolean isSatisified() throws Exception {
                LOG.info("local subs map size = " + bridge.getLocalSubscriptionMap().size());
                return 1 == bridge.getLocalSubscriptionMap().size();
            }
        }));

    }
View Full Code Here

Examples of org.apache.activemq.network.DemandForwardingBridgeSupport

        }
        waitForMessagesToBeDelivered();
        assertEquals("Got all messages", data.length, messages.size());

        BrokerService broker = (BrokerService) brokers.get("receiver");
        final DemandForwardingBridgeSupport bridge = (DemandForwardingBridgeSupport) broker.getNetworkConnectors().get(0).activeBridges().toArray()[0];
        assertTrue("No extra, size:" + bridge.getLocalSubscriptionMap().size(), Wait.waitFor(new Wait.Condition() {
            @Override
            public boolean isSatisified() throws Exception {
                LOG.info("local subs map size = " + bridge.getLocalSubscriptionMap().size());
                return 0 == bridge.getLocalSubscriptionMap().size();
            }
        }));

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.