Package com.github.mustachejava.util
Class LatchedWriter
java.lang.Object
java.io.Writer
com.github.mustachejava.util.LatchedWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Buffer content while a future is being evaluated in another thread.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringBuilderprivate Throwableprivate final CountDownLatchprivate final Writer -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
latch
-
buffer
-
writer
-
e
-
-
Constructor Details
-
LatchedWriter
-
-
Method Details
-
done
- Throws:
IOException
-
failed
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
checkException
- 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
-
await
public void await()
-