Package com.taobao.metaq.client

Examples of com.taobao.metaq.client.MetaPushConsumer.subscribe()


    }
       
        String instanceName = groupId +"@" +  JStormUtils.process_pid();
    consumer.setInstanceName(instanceName);
    consumer.setConsumeFromWhere(ConsumeFromWhere.CONSUME_FROM_LAST_OFFSET);
    consumer.subscribe(config.getTopic(), config.getSubExpress());
    consumer.registerMessageListener(listener);
   
    consumer.setPullThresholdForQueue(config.getQueueSize());
    consumer.setConsumeMessageBatchMaxSize(config.getSendBatchSize());
    consumer.setPullBatchSize(config.getPullBatchSize());
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.