Package com.dianping.cat.message.spi

Examples of com.dianping.cat.message.spi.MessageQueue.offer()


    Assert.assertEquals(true, analyzer.isActive());
    Assert.assertEquals(true, analyzer.isTimeout());

    int count = 2000;
    for (int i = 0; i < count; i++) {
      queue.offer(new DefaultMessageTree());
    }

    analyzer.analyze(queue);

    Assert.assertEquals(Math.min(queueSize, count), analyzer.m_count);
View Full Code Here


    Assert.assertEquals(true, analyzer.isActive());
    Assert.assertEquals(false, analyzer.isTimeout());

    int count = 1000;
    for (int i = 0; i < count; i++) {
      queue.offer(new DefaultMessageTree());
    }
    Threads.forGroup().start(new ShutDown(analyzer));

    analyzer.analyze(queue);
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.