public class MessageKeeper extends SizeLimitedVector<MessageKeeperMessage>
MessageKeeperMessage
s.
MessageKeeperMessage
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
MessageKeeper.MessageKeeperLevel |
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
capacityIncrement, elementCount, elementData
modCount
Constructor and Description |
---|
MessageKeeper() |
MessageKeeper(int maxSize) |
Modifier and Type | Method and Description |
---|---|
void |
add(String message) |
void |
add(String message,
Date date) |
void |
add(String message,
Date date,
MessageKeeper.MessageKeeperLevel level) |
void |
add(String message,
MessageKeeper.MessageKeeperLevel level) |
void |
add(String message,
Throwable t)
Add an error message to the
MessageKeeper(int) and log it as a warning |
void |
error(INamedObject namedObject,
String msg) |
void |
error(String msg) |
MessageKeeperMessage |
getMessage(int i)
Get a message by number
|
void |
info(INamedObject namedObject,
String msg) |
void |
info(String msg) |
void |
warn(INamedObject namedObject,
String msg) |
void |
warn(String msg) |
add, setMaxSize
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
parallelStream, stream
public MessageKeeper()
public MessageKeeper(int maxSize)
public void add(String message)
public void add(String message, MessageKeeper.MessageKeeperLevel level)
public void add(String message, Date date, MessageKeeper.MessageKeeperLevel level)
public MessageKeeperMessage getMessage(int i)
MessageKeeperMessage
public void add(String message, Throwable t)
MessageKeeper(int)
and log it as a warningpublic void info(String msg)
public void info(INamedObject namedObject, String msg)
public void warn(String msg)
public void warn(INamedObject namedObject, String msg)
public void error(String msg)
public void error(INamedObject namedObject, String msg)
Copyright © 2023 Frank!Framework. All rights reserved.