@InterfaceAudience.Private public class MemoryBoundedLogMessageBuffer extends Object
Constructor and Description |
---|
MemoryBoundedLogMessageBuffer(long maxSizeBytes) |
Modifier and Type | Method and Description |
---|---|
void |
add(String messageText)
Append the given message to this buffer, automatically evicting
older messages until the desired memory limit is achieved.
|
void |
dumpTo(PrintWriter out)
Dump the contents of the buffer to the given stream.
|
public MemoryBoundedLogMessageBuffer(long maxSizeBytes)
public void add(String messageText)
public void dumpTo(PrintWriter out)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.