Package org.apache.log4j.chainsaw
Interface EventBatchListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
LogPanel
,LogUI.NewTabEventBatchReceiver
Implementations of this interface like to be notified
of arriving batches of LoggingEvents, but may only
be interested in those coming from a particular source
-
Method Summary
Modifier and TypeMethodDescriptionReturns the string representing the identifier that this instance is only interested in, or null if this instance is interested in ALL events from any identifiervoid
receiveEventBatch
(String identifier, List<org.apache.log4j.spi.LoggingEvent> events) Implementations receive a list of LoggingEvent instances only if they are interested, that is, if the source of the eventBatch matches this instances interested identifier
-
Method Details
-
getInterestedIdentifier
String getInterestedIdentifier()Returns the string representing the identifier that this instance is only interested in, or null if this instance is interested in ALL events from any identifier- Returns:
- String identifier of the interested source
-
receiveEventBatch
Implementations receive a list of LoggingEvent instances only if they are interested, that is, if the source of the eventBatch matches this instances interested identifier- Parameters:
events
- List of LoggingEvent instancesidentifier
- the identifier this list of LoggingEvents is associated with
-