public class AccessEventAppenderListenerImpl extends Object implements AppenderListener<IAccessEvent>
AppenderListener
for IAccessEvent
s that does nothing.Constructor and Description |
---|
AccessEventAppenderListenerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
appenderStarted(Appender<IAccessEvent> appender)
Called when the given appender is started.
|
void |
appenderStopped(Appender<IAccessEvent> appender)
Called when the given appender is stopped.
|
void |
eventAppended(Appender<IAccessEvent> appender,
IAccessEvent event,
long durationInNanos)
Called when the given event was successfully appended by the given appender.
|
void |
eventAppendFailed(Appender<IAccessEvent> appender,
IAccessEvent event,
Throwable reason)
Called when the given event was failed to be appended by the given appender.
|
public void appenderStarted(Appender<IAccessEvent> appender)
AppenderListener
appenderStarted
in interface AppenderListener<IAccessEvent>
appender
- the appender that was startedpublic void appenderStopped(Appender<IAccessEvent> appender)
AppenderListener
appenderStopped
in interface AppenderListener<IAccessEvent>
appender
- the appender that was stoppedpublic void eventAppended(Appender<IAccessEvent> appender, IAccessEvent event, long durationInNanos)
AppenderListener
eventAppended
in interface AppenderListener<IAccessEvent>
appender
- the appender when successfully appended the eventevent
- the event that was appendeddurationInNanos
- the time (in nanoseconds) it took to append the eventpublic void eventAppendFailed(Appender<IAccessEvent> appender, IAccessEvent event, Throwable reason)
AppenderListener
eventAppendFailed
in interface AppenderListener<IAccessEvent>
appender
- the appender when successfully appended the eventevent
- the event that was appendedreason
- what caused the failureCopyright © 2020. All rights reserved.