@InterfaceAudience.Private public class MemoryBoundedLogMessageBuffer extends java.lang.Object
| Constructor and Description |
|---|
MemoryBoundedLogMessageBuffer(long maxSizeBytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String messageText)
Append the given message to this buffer, automatically evicting
older messages until the desired memory limit is achieved.
|
void |
dumpTo(java.io.PrintWriter out)
Dump the contents of the buffer to the given stream.
|