public interface TcpAppenderListener<Event extends DeferredProcessingAware> extends AppenderListener<Event>
| Modifier and Type | Method and Description |
|---|---|
default void |
connectionClosed(Appender<Event> appender,
Socket socket)
Called after the given appender closes the given socket
(either due to a reconnect, or shutdown)
|
default void |
connectionFailed(Appender<Event> appender,
InetSocketAddress address,
Throwable reason)
Called after the given appender fails to open a socket
|
default void |
connectionOpened(Appender<Event> appender,
Socket socket)
Called after the given appender successfully opens the given socket
|
default void |
eventSendFailure(Appender<Event> appender,
Event event,
Throwable reason)
Called when the given appender fails to send the given event over a TCP connection.
|
default void |
eventSent(Appender<Event> appender,
Socket socket,
Event event,
long durationInNanos)
Called after given appender successfully sent the given event over the TCP connection.
|
appenderStarted, appenderStopped, eventAppended, eventAppendFaileddefault void eventSent(Appender<Event> appender, Socket socket, Event event, long durationInNanos)
appender - the appender that sent the eventsocket - the socket over which the appender sent the eventevent - the event that was sentdurationInNanos - the time (in nanoseconds) it took to send the eventdefault void eventSendFailure(Appender<Event> appender, Event event, Throwable reason)
appender - the appender that attempted to send the eventevent - the event that failed to sendreason - what caused the failuredefault void connectionOpened(Appender<Event> appender, Socket socket)
appender - the appender that opened the socketsocket - the socket that was openeddefault void connectionFailed(Appender<Event> appender, InetSocketAddress address, Throwable reason)
appender - the appender that attempted to open a socketaddress - the address to which the appender attempted to connectreason - what caused the failureCopyright © 2013–2021. All rights reserved.