Package org.apache.activemq.plugin

Examples of org.apache.activemq.plugin.StatisticsBrokerPlugin


    protected ActiveMQConnection connection;

    @Override
    protected void addAdditionalPlugins(List<BrokerPlugin> plugins) throws Exception {
        plugins.add(new StatisticsBrokerPlugin());
    }
View Full Code Here


        entry.setPrioritizedMessages(true);
        entry.setQueue(QUEUE_NAME);
        pMap.setPolicyEntries(Arrays.asList(entry));
        broker.setDestinationPolicy(pMap);
        // Enable statistics
        broker.setPlugins(new BrokerPlugin[]{new StatisticsBrokerPlugin()});
        broker.setEnableStatistics(true);

        return broker;
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.plugin.StatisticsBrokerPlugin

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.