Package org.thymeleaf.engine
Class ThrottledTemplateWriter
java.lang.Object
java.io.Writer
org.thymeleaf.engine.ThrottledTemplateWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable,IThrottledTemplateWriterControl
- Direct Known Subclasses:
SSEThrottledTemplateWriter
- Since:
- 3.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TemplateFlowControllerprivate booleanprivate final Stringprivate Writer -
Constructor Summary
ConstructorsConstructorDescriptionThrottledTemplateWriter(String templateName, TemplateFlowController flowController) -
Method Summary
Modifier and TypeMethodDescription(package private) voidallow(int limit) voidclose()voidflush()intintintbooleanboolean(package private) voidsetOutput(OutputStream outputStream, Charset charset, int maxOutputInBytes) (package private) voidvoidwrite(char[] cbuf) voidwrite(char[] cbuf, int off, int len) voidwrite(int c) voidvoid
-
Field Details
-
templateName
-
flowController
-
adapter
-
writer
-
flushable
private boolean flushable
-
-
Constructor Details
-
ThrottledTemplateWriter
ThrottledTemplateWriter(String templateName, TemplateFlowController flowController)
-
-
Method Details
-
setOutput
-
setOutput
-
isOverflown
- Specified by:
isOverflownin interfaceIThrottledTemplateWriterControl- Throws:
IOException
-
isStopped
- Specified by:
isStoppedin interfaceIThrottledTemplateWriterControl- Throws:
IOException
-
getWrittenCount
public int getWrittenCount()- Specified by:
getWrittenCountin interfaceIThrottledTemplateWriterControl
-
getMaxOverflowSize
public int getMaxOverflowSize()- Specified by:
getMaxOverflowSizein interfaceIThrottledTemplateWriterControl
-
getOverflowGrowCount
public int getOverflowGrowCount()- Specified by:
getOverflowGrowCountin interfaceIThrottledTemplateWriterControl
-
allow
void allow(int limit) -
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-