/** * This method represents the input port of this filter. * * @param event * The next event. */ @InputPort(name = INPUT_PORT_NAME_EVENTS, eventTypes = { Object.class }, description = "Receives incoming objects to be counted and forwarded") public final void inputEvent(final Object event) { final Long count = CountingFilter.this.counter.incrementAndGet(); this.updateDisplays(); super.deliver(OUTPUT_PORT_NAME_RELAYED_EVENTS, event); super.deliver(OUTPUT_PORT_NAME_COUNT, count); }
/** * This method represents the input port of this filter. * * @param event * The next event. */ @InputPort(name = INPUT_PORT_NAME_EVENTS, eventTypes = { Object.class }, description = "Receives incoming objects to be counted and forwarded") public final void inputEvent(final Object event) { final Long count = CountingFilter.this.counter.incrementAndGet(); this.updateDisplays(); super.deliver(OUTPUT_PORT_NAME_RELAYED_EVENTS, event); super.deliver(OUTPUT_PORT_NAME_COUNT, count); }