code: private int executeBatch() {
  		try {
  			return Arrays.stream(agent().batch(context())).sum();
  		} catch (Exception ex) {
  			errorAction.accept(agent(), context(), ex);
  		} finally {
  			batchAction.accept(agent(), context());
  		}
  		return 0;
  	}
docs: バッチ処理の実行
  @return 更新件数