|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.common.ui.client.logging.LogBuffer
public class LogBuffer
Stores log messages, can be sent to log service.
Field Summary | |
---|---|
(package private) List<LogMessage> |
buffer
|
(package private) int |
maxSize
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
LogBuffer()
Creates an empty LogBuffer with a size limit of Integer.MAX_VALUE |
|
LogBuffer(int maxSize)
Creates an empty LogBuffer with the specified size limit. |
Method Summary | |
---|---|
void |
add(LogMessage message)
Adds a message to the buffer |
private void |
checkLimit()
Removes excess messages, oldest first. |
List<LogMessage> |
getLogMessages()
Returns the underlying log buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
int maxSize
List<LogMessage> buffer
Constructor Detail |
---|
public LogBuffer()
public LogBuffer(int maxSize)
maxSize
- Method Detail |
---|
public void add(LogMessage message)
message
- public List<LogMessage> getLogMessages()
private void checkLimit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |