Examples of FanOutQueueImpl


Examples of com.leansoft.bigqueue.FanOutQueueImpl

   
  }
 
  @Test
  public void runTest() throws Exception {
    foQueue = new FanOutQueueImpl(testDir, "load_test_one");
   
    System.out.println("Load test begin ...");
    for(int i = 0; i < loop; i++) {
      System.out.println("[doRunProduceThenConsume] round " + (i + 1) + " of " + loop);
      this.doRunProduceThenConsume();
     
      // reset
      foQueue.removeAll();
    }
   
    foQueue.close();
    foQueue = new FanOutQueueImpl(testDir, "load_test_two");
   
    for(int i = 0; i < loop; i++) {
      System.out.println("[doRunMixed] round " + (i + 1) + " of " + loop);
      this.doRunMixed();
     
View Full Code Here

Examples of com.leansoft.bigqueue.FanOutQueueImpl

  public void demo() throws IOException {
    IFanOutQueue foQueue = null;
   
    try {
      // create a new fanout queue
      foQueue = new FanOutQueueImpl("d:/tutorial/fanout-queue", "demo");
     
      // enqueue some logs
      for(int i = 0; i < 10; i++) {
        String log = "log-" + i;
        foQueue.enqueue(log.getBytes());
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.