Package com.taobao.metamorphosis.client.extension

Examples of com.taobao.metamorphosis.client.extension.OrderedMetaMessageSessionFactory


        final Properties partitionsInfo = new Properties();
        partitionsInfo.put("topic.num.exampleTopic1", "0:4;1:4");
        metaClientConfig.setPartitionsInfo(partitionsInfo);

        // New session factory,ǿ�ҽ���ʹ�õ���
        final OrderedMessageSessionFactory sessionFactory = new OrderedMetaMessageSessionFactory(metaClientConfig);

        // create producer,ǿ�ҽ���ʹ�õ���
        final MessageProducer producer = sessionFactory.createProducer(new CustomPartitionSelector());

        // publish topic
        final String topic = "meta-test";
        producer.publish(topic);
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.client.extension.OrderedMetaMessageSessionFactory

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.