() -> new StreamThrottledTemplateProcessor( processThrottled(templateName, markupSelectors, context), null, null, 0L, false), throttledProcessor.startChunk(); "\"{}\", CHUNK {}) FOR TEMPLATE \"{}\" WITH LOCALE {}", new Object[]{ TemplateEngine.threadIndex(), throttledProcessor.getProcessorIdentifier(), throttledProcessor.getProcessorIdentifier(), Integer.valueOf(throttledProcessor.getChunkCount()), LoggingUtils.loggifyTemplateName(templateName), context.getLocale()}); try { bytesProduced = throttledProcessor.process(responseMaxChunkSizeBytes, buffer.asOutputStream(), charset); } catch (final Throwable t) { emitter.error(t); "\"{}\", CHUNK {}) FOR TEMPLATE \"{}\" WITH LOCALE {}. PRODUCED {} BYTES", new Object[]{ TemplateEngine.threadIndex(), throttledProcessor.getProcessorIdentifier(), throttledProcessor.getProcessorIdentifier(), Integer.valueOf(throttledProcessor.getChunkCount()), LoggingUtils.loggifyTemplateName(templateName), context.getLocale(), Integer.valueOf(bytesProduced)}); if (throttledProcessor.isFinished()) { "\"{}\") FOR TEMPLATE \"{}\" WITH LOCALE {}. PRODUCED A TOTAL OF {} BYTES IN {} CHUNKS", new Object[]{ TemplateEngine.threadIndex(), throttledProcessor.getProcessorIdentifier(), throttledProcessor.getProcessorIdentifier(),
final TemplateSpec templateSpec = new TemplateSpec(templateName, markupSelectors, outputContentType, null); return new StreamThrottledTemplateProcessor( processThrottled(templateSpec, wrappedContext), dataDrivenIterator, sseEventsPrefix, sseEventsID, sse); }, if (throttledProcessor.isFinished()) { final DataDrivenTemplateIterator dataDrivenTemplateIterator = throttledProcessor.getDataDrivenTemplateIterator(); if (throttledProcessor.isFinished()) { emitter.complete(); return Boolean.FALSE; throttledProcessor.startChunk(); "\"{}\", CHUNK {}) FOR TEMPLATE \"{}\" WITH LOCALE {}", new Object[]{ TemplateEngine.threadIndex(), throttledProcessor.getProcessorIdentifier(), throttledProcessor.getProcessorIdentifier(), Integer.valueOf(throttledProcessor.getChunkCount()), LoggingUtils.loggifyTemplateName(templateName), context.getLocale()}); throttledProcessor.process(responseMaxChunkSizeBytes, buffer.asOutputStream(), charset); "\"{}\", CHUNK {}) FOR TEMPLATE \"{}\" WITH LOCALE {}. PRODUCED {} BYTES", new Object[]{ TemplateEngine.threadIndex(), throttledProcessor.getProcessorIdentifier(), throttledProcessor.getProcessorIdentifier(), Integer.valueOf(throttledProcessor.getChunkCount()), LoggingUtils.loggifyTemplateName(templateName), context.getLocale(), Integer.valueOf(bytesProduced)});