// consuming the queue with fanoutId 1
String fanoutId1 = "realtime";
System.out.println("output from " + fanoutId1 + " consumer:");
while(!foQueue.isEmpty(fanoutId1)) {
String item = new String(foQueue.dequeue(fanoutId1));
System.out.println(item);
}
// consuming the queue with fanoutId 2
String fanoutId2 = "offline";