Package ch.qos.logback.classic.net
Class SocketReceiver
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.classic.net.ReceiverBase
-
- ch.qos.logback.classic.net.SocketReceiver
-
- All Implemented Interfaces:
SocketConnector.ExceptionHandler
,ContextAware
,LifeCycle
,java.lang.Runnable
- Direct Known Subclasses:
SSLSocketReceiver
public class SocketReceiver extends ReceiverBase implements java.lang.Runnable, SocketConnector.ExceptionHandler
A component that receives serializedILoggingEvent
objects from a remote appender over aSocket
.
-
-
Constructor Summary
Constructors Constructor Description SocketReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectionFailed(SocketConnector connector, java.lang.Exception ex)
void
run()
void
setAcceptConnectionTimeout(int acceptConnectionTimeout)
void
setPort(int port)
void
setReconnectionDelay(int reconnectionDelay)
void
setRemoteHost(java.lang.String remoteHost)
-
Methods inherited from class ch.qos.logback.classic.net.ReceiverBase
isStarted, start, stop
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
connectionFailed
public void connectionFailed(SocketConnector connector, java.lang.Exception ex)
- Specified by:
connectionFailed
in interfaceSocketConnector.ExceptionHandler
-
setRemoteHost
public void setRemoteHost(java.lang.String remoteHost)
-
setPort
public void setPort(int port)
-
setReconnectionDelay
public void setReconnectionDelay(int reconnectionDelay)
-
setAcceptConnectionTimeout
public void setAcceptConnectionTimeout(int acceptConnectionTimeout)
-
-