private static class MemoryBoundedLogMessageBuffer.LogMessage extends Object
Modifier and Type | Field and Description |
---|---|
private static long |
BASE_USAGE
Completely non-scientific estimate of how much one of these objects takes, along with the
LinkedList overhead.
|
byte[] |
message
the error text, encoded in bytes to save memory
|
long |
timestamp |
Constructor and Description |
---|
LogMessage(String message,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
long |
estimateHeapUsage() |
public final byte[] message
public final long timestamp
private static final long BASE_USAGE
public LogMessage(String message, long timestamp)
public long estimateHeapUsage()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.