@Override public void update(ExecutionContext executionContext) throws ItemStreamException { super.update(executionContext); executionContext.putInt(getExecutionContextKey("COUNT"), counter.get()); }
/** * Store the current resource index and position in the resource. */ @Override public void update(ExecutionContext executionContext) throws ItemStreamException { super.update(executionContext); if (saveState) { executionContext.putInt(getExecutionContextKey(RESOURCE_KEY), currentResource); delegate.update(executionContext); } }
@Override public void update(ExecutionContext executionContext) throws ItemStreamException { super.update(executionContext); if (saveState) { Assert.notNull(executionContext, "ExecutionContext must not be null"); executionContext.putInt(getExecutionContextKey(READ_COUNT), currentItemCount); if (maxItemCount < Integer.MAX_VALUE) { executionContext.putInt(getExecutionContextKey(READ_COUNT_MAX), maxItemCount); } } }
@Override public void update(ExecutionContext executionContext) { super.update(executionContext); getExecutionAttributesCalled = true; executionContext.putString("spam", "bucket"); }
@Override public void update(ExecutionContext executionContext) throws ItemStreamException { super.update(executionContext); executionContext.putLong(getExecutionContextKey("POSITION"), index); }
@Override public void update(ExecutionContext executionContext) throws ItemStreamException { super.update(executionContext); executionContext.putInt(getExecutionContextKey("COUNT"), counter.get()); }
@Override public void update(ExecutionContext executionContext) throws ItemStreamException { super.update(executionContext); if (saveState) { Assert.notNull(executionContext, "ExecutionContext must not be null"); executionContext.putInt(getExecutionContextKey(READ_COUNT), currentItemCount); if (maxItemCount < Integer.MAX_VALUE) { executionContext.putInt(getExecutionContextKey(READ_COUNT_MAX), maxItemCount); } } }
/** * Store the current resource index and position in the resource. */ @Override public void update(ExecutionContext executionContext) throws ItemStreamException { super.update(executionContext); if (saveState) { executionContext.putInt(getExecutionContextKey(RESOURCE_KEY), currentResource); delegate.update(executionContext); } }