Package com.taobao.metamorphosis.client.extension

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


*
*/
public class AsyncOnewayProducer {
    public static void main(final String[] args) throws Exception {
        // New session factory,ǿ�ҽ���ʹ�õ���
        final AsyncMessageSessionFactory sessionFactory = new AsyncMetaMessageSessionFactory(initMetaConfig());
        // create producer,ǿ�ҽ���ʹ�õ���
        final MessageProducer producer = sessionFactory.createAsyncProducer();
        // publish topic
        final String topic = "meta-test";
        producer.publish(topic);

        final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
View Full Code Here


                    // metaClientConfig.setDiamondZKDataId(this.diamondZKDataId);
                    // metaClientConfig.setDiamondZKGroup(this.diamondZKGroup);
                    metaClientConfig.setZkConfig(this.zkConfig);
                    try {
                        if (this.messageSessionFactory == null) {
                            this.messageSessionFactory = new AsyncMetaMessageSessionFactory(metaClientConfig);
                        }
                        this.producer = this.messageSessionFactory.createAsyncProducer();
                    }
                    catch (final MetaClientException e) {
                        LogLog.error("Init meta producer failed" + this.out, e);
View Full Code Here

TOP

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

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.