Package com.leansoft.bigqueue

Examples of com.leansoft.bigqueue.IFanOutQueue.enqueue()


      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());
      }
     
      // consuming the queue with fanoutId 1
      String fanoutId1 = "realtime";
      System.out.println("output from " + fanoutId1 + " consumer:");
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.