Module com.dua3.utility.logging
Package com.dua3.utility.logging
Interface LogBuffer.LogBufferListener
- Enclosing class:
- LogBuffer
public static interface LogBuffer.LogBufferListener
Interface for Listeners on changes of a
LogBuffer instance's contents.-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Called after the buffer has been cleared.voidentries(Collection<LogEntry> entries, int replaced) Called when multiple entries have been added in a batch.default voidCalled when an entry was added to the buffer.
-
Method Details
-
entry
Called when an entry was added to the buffer.- Parameters:
entry- the added entryreplaced- true, if the buffer's capacity was reached and another entry was removed to make space for the new one
-
entries
Called when multiple entries have been added in a batch.- Parameters:
entries- the added entriesreplaced- the number of replaced entries as described inentry(LogEntry, boolean)
-
clear
void clear()Called after the buffer has been cleared.
-