public interface LogListener
LogBroadcaster
must implement this interface.Modifier and Type | Method and Description |
---|---|
void |
addedTo(LogBroadcaster le)
This method is called whenever this LogSubscriber is successfully attached to a
LogBroadcaster . |
boolean |
receiveLogEvent(LogEvent le)
This method is called whenever a new log event has arrived for the subscriber to handle.
|
void |
removedFrom(LogBroadcaster le)
This method is called whenever this
LogListener is removed from a LogBroadcaster . |
boolean receiveLogEvent(LogEvent le)
void addedTo(LogBroadcaster le)
LogBroadcaster
.
The LogSubscriber can use this event to keep a list of LogBroadcaster
s it is subscribed to, so it can
easily remove itself from those when itself wants to get garbage-collected.void removedFrom(LogBroadcaster le)
LogListener
is removed from a LogBroadcaster
.
The LogBroadcaster
can use this event to update its list of LogBroadcaster
it is subscribed to.