public final class DataDrivenTemplateIterator extends Object implements Iterator<Object>
Throttled implementation of Iterator
, meant to be used in scenarios when an iterated
context variable is allowed to be in control of the engine's throttling (i.e. the engine's execution
is data-driven).
A common scenario for this would be reactive systems executing the template engine as a part of a flow obtaining data from a data source, so that as the data is obtained, a part of the template is output containing that part of the data.
This class is meant for internal use only from the diverse integrations of Thymeleaf in reactive architectures. There is normally no reason why a user would have to use this class directly.
Constructor and Description |
---|
DataDrivenTemplateIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
continueBufferExecution() |
void |
feedBuffer(List<Object> newElements) |
void |
feedingComplete() |
boolean |
hasNext() |
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
Copyright © 2016 The THYMELEAF team. All rights reserved.