/* * (non-Javadoc) * * @see io.s4.ProcessingElement#processInputEvent(io.s4.Event) */ @Override protected void processInputEvent(Event event) { counter += 1; if (counter % interval == 0) { CountEvent countEvent = new CountEvent(countStream.getName() + ": " + getId(), counter); countStream.put(countEvent); } }
public void injectByKey(ObsEvent obsEvent) { logger.trace("Inject: " + obsEvent.toString()); assignmentStream.put(obsEvent); }
public void injectToAll(ObsEvent obsEvent) { logger.trace("Inject: " + obsEvent.toString()); obsStream.put(obsEvent); }