20 import ca.uqac.lif.cep.Connector;
21 import ca.uqac.lif.cep.io.Print;
22 import ca.uqac.lif.cep.tmf.Pump;
23 import ca.uqac.lif.cep.tmf.QueueSource;
34 public static void main(String[] args)
throws InterruptedException
37 QueueSource source =
new QueueSource().setEvents(1, 2, 3, 4);
38 Pump pump =
new Pump(1000);
39 Print print =
new Print();
40 Connector.connect(source, pump, print);
41 Thread th =
new Thread(pump);
Print events from a queue source with the use of a Pump processor.