- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
JsonBuffer
,LogEncoder.Buffer.StringBuilderBuffer
- Enclosing interface:
LogEncoder
Encoders buffer.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A buffer that simply wraps aStringBuilder
. -
Method Summary
-
Method Details
-
drain
The appender will call this usually within a lock to transfer content from the buffer to the output.- Parameters:
output
- output to receive content.event
- log event.
-
clear
void clear()Prepare the buffer for reuse.An appender may not call clear before being passed to the encoder so the encoder should do its own clearing.
-
close
Convenience that will call clear.- Specified by:
close
in interfaceAutoCloseable
-