ageCountPE.addTrigger().fireOn(Event.class).ifInterval(100l, TimeUnit.MILLISECONDS);
generateUserEventPE = addPE(GenerateUserEventPE.class).asSingleton();
generateUserEventPE.addTimer().withDuration(1, TimeUnit.MILLISECONDS);
ageCountPE.emit(CountEvent.class).onKey(new CountKeyFinder()).to(printPE);
genderCountPE.emit(CountEvent.class).onKey(new CountKeyFinder()).to(printPE);
userCountPE.emit(CountEvent.class).onKey(new CountKeyFinder()).to(printPE);
generateUserEventPE.emit(UserEvent.class).onKey(new AgeKeyFinder()).to(ageCountPE);
generateUserEventPE.emit(UserEvent.class).onKey("gender").to(genderCountPE);