Package com.taobao.metamorphosis.client

Examples of com.taobao.metamorphosis.client.MetaMessageSessionFactory


    @Before
    @Override
    public void setUp() throws Exception {
        MetaClientConfig metaClientConfig = new MetaClientConfig();
        super.sessionFactory = new MetaMessageSessionFactory(metaClientConfig);
        this.log.info("before run");
    }
View Full Code Here


*/
public class MetaqMessageSessionFactoryBean extends AbstractMetaqMessageSessionFactory<MessageSessionFactory> {

    @Override
    public MessageSessionFactory getObject() throws Exception {
        this.sessionFactory = new MetaMessageSessionFactory(this.metaClientConfig);
        return this.sessionFactory;
    }
View Full Code Here

        }
    }


    private void setUpMeta(final String topic, final Integer maxSize) throws MetaClientException {
        this.sessionFactory = new MetaMessageSessionFactory(this.metaClientConfig);
        this.messageConsumer = this.sessionFactory.createConsumer(this.consumerConfig);
        this.messageConsumer.subscribe(topic, maxSize, new MessageListener() {

            @Override
            public void recieveMessages(final Message message) {
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.client.MetaMessageSessionFactory

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.