Package com.taobao.metamorphosis.client.producer

Examples of com.taobao.metamorphosis.client.producer.RoundRobinPartitionSelector


    @Before
    public void setUp() throws Exception {
        this.mocksControl = EasyMock.createControl();
        this.producerZooKeeper = this.mocksControl.createMock(ProducerZooKeeper.class);
        this.partitionSelector = new RoundRobinPartitionSelector();
        this.remotingClient = this.mocksControl.createMock(RemotingClientWrapper.class);
        this.messageSessionFactory = this.mocksControl.createMock(MetaMessageSessionFactory.class);
        this.processor = this.mocksControl.createMock(IgnoreMessageProcessor.class);
        this.producer =
                new AsyncMetaMessageProducer(messageSessionFactory, this.remotingClient, this.partitionSelector,
View Full Code Here


    @Before
    public void setUp() {
        this.mocksControl = EasyMock.createControl();
        this.producerZooKeeper = this.mocksControl.createMock(ProducerZooKeeper.class);
        this.partitionSelector = new RoundRobinPartitionSelector();
        this.remotingClient = this.mocksControl.createMock(RemotingClientWrapper.class);
        this.localMessageStorageManager = this.mocksControl.createMock(OrderedLocalMessageStorageManager.class);
        this.producer =
                new OrderedMessageProducer(null, this.remotingClient, this.partitionSelector, this.producerZooKeeper,
                    null, this.localMessageStorageManager);
View Full Code Here

     * com.taobao.metamorphosis.client.extension.AsyncMessageSessionFactory#
     * createAsyncProducer()
     */
    @Override
    public AsyncMessageProducer createAsyncProducer() {
        return this.createAsyncProducer(new RoundRobinPartitionSelector());
    }
View Full Code Here

     * com.taobao.metamorphosis.client.MetaMessageSessionFactory#createProducer
     * ()
     */
    @Override
    public MessageProducer createProducer() {
        return this.createProducer(new RoundRobinPartitionSelector(), false);
    }
View Full Code Here

     * com.taobao.metamorphosis.client.MetaMessageSessionFactory#createProducer
     * (boolean)
     */
    @Override
    public MessageProducer createProducer(final boolean ordered) {
        return this.createProducer(new RoundRobinPartitionSelector(), ordered);
    }
View Full Code Here

    }


    @Override
    public XAMessageProducer createXAProducer() {
        return this.createXAProducer(new RoundRobinPartitionSelector());
    }
View Full Code Here

     *
     * @see com.taobao.metamorphosis.client.SessionFactory#createProducer()
     */
    @Override
    public MessageProducer createProducer() {
        return this.createProducer(new RoundRobinPartitionSelector(), false);
    }
View Full Code Here

     * com.taobao.metamorphosis.client.SessionFactory#createProducer(boolean)
     */
    @Override
    @Deprecated
    public MessageProducer createProducer(final boolean ordered) {
        return this.createProducer(new RoundRobinPartitionSelector(), ordered);
    }
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.client.producer.RoundRobinPartitionSelector

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.