public void ack(Tuple tuple) { Object id = tuple.getValue(0); synchronized (_tracked) { TrackingInfo track = _tracked.get(id); if (track != null) { track.receivedTuples++; } } boolean failed = checkFinishId(tuple, TupleType.REGULAR); if (failed) { _delegate.fail(tuple); } else { _delegate.ack(tuple); } }
@Override public List<Integer> emit(String streamId, Collection<Tuple> anchors, List<Object> tuple) { return _delegate.emit(streamId, anchors, tuple); }
@Override public void emitDirect(int taskId, String streamId, Collection<Tuple> anchors, List<Object> tuple) { _delegate.emitDirect(taskId, streamId, anchors, tuple); }
@Override public void reportError(Throwable error) { _delegate.reportError(error); }
@Override public void fail(Tuple input) { _delegate.fail(input); }
@Override public void ack(Tuple input) { _delegate.ack(input); }
/** * Resets the message timeout for any tuple trees to which the given tuple belongs. The timeout is reset to * Config.TOPOLOGY_MESSAGE_TIMEOUT_SECS. Note that this is an expensive operation, and should be used sparingly. * * @param input the tuple to reset timeout for */ @Override public void resetTimeout(Tuple input) { _delegate.resetTimeout(input); }
@Override public void flush() { _delegate.flush(); } }
public void reportError(Throwable error) { _delegate.reportError(error); }
public void fail(Tuple tuple) { Object id = tuple.getValue(0); synchronized (_tracked) { TrackingInfo track = _tracked.get(id); if (track != null) { track.failed = true; } } checkFinishId(tuple, TupleType.REGULAR); _delegate.fail(tuple); }
@Override public void ack(Tuple input) { delegate.ack(input); }
public void resetTimeout(Tuple tuple) { _delegate.resetTimeout(tuple); }
@Override public void flush() { _delegate.flush(); }
public void reportError(Throwable error) { _delegate.reportError(error); }
public List<Integer> emit(String stream, Collection<Tuple> anchors, List<Object> tuple) { List<Integer> tasks = _delegate.emit(stream, anchors, tuple); updateTaskCounts(tasks); return tasks; }
public void emitDirect(int task, String stream, Collection<Tuple> anchors, List<Object> tuple) { updateTaskCounts(tuple.get(0), Arrays.asList(task)); _delegate.emitDirect(task, stream, anchors, tuple); }
@Override public void fail(Tuple input) { delegate.fail(input); }
@Override public void ack(Tuple input) { _delegate.ack(input); }
public void resetTimeout(Tuple tuple) { _delegate.resetTimeout(tuple); }