Package ch.qos.logback.core.net
Class DefaultSocketConnector
java.lang.Object
ch.qos.logback.core.net.DefaultSocketConnector
- All Implemented Interfaces:
SocketConnector
,Callable<Socket>
@Deprecated(since="2022-01-27")
public class DefaultSocketConnector
extends Object
implements SocketConnector
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
Default implementation of
SocketConnector
.- Since:
- 1.0.12
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.qos.logback.core.net.SocketConnector
SocketConnector.ExceptionHandler
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSocketConnector
(InetAddress address, int port, long initialDelay, long retryDelay) Deprecated.Constructs a new connector.DefaultSocketConnector
(InetAddress address, int port, DelayStrategy delayStrategy) Deprecated.Constructs a new connector. -
Method Summary
Modifier and TypeMethodDescriptioncall()
Deprecated.Loops until the desired connection is established and returns the resulting connector.void
setExceptionHandler
(SocketConnector.ExceptionHandler exceptionHandler) Deprecated.Sets the connector's exception handler.void
setSocketFactory
(SocketFactory socketFactory) Deprecated.Sets the connector's socket factory.
-
Constructor Details
-
DefaultSocketConnector
Deprecated.Constructs a new connector.- Parameters:
address
- address of remote listenerport
- port of remote listenerinitialDelay
- delay before initial connection attemptretryDelay
- delay after failed connection attempt
-
DefaultSocketConnector
Deprecated.Constructs a new connector.- Parameters:
address
- address of remote listenerport
- port of remote listenerdelayStrategy
- strategy for choosing the delay to impose before each connection attempt
-
-
Method Details
-
call
Deprecated.Loops until the desired connection is established and returns the resulting connector.- Specified by:
call
in interfaceCallable<Socket>
- Specified by:
call
in interfaceSocketConnector
- Returns:
- the connected socket
- Throws:
InterruptedException
-
setExceptionHandler
Deprecated.Sets the connector's exception handler.The handler must be set before the
SocketConnector.call()
method is invoked.- Specified by:
setExceptionHandler
in interfaceSocketConnector
- Parameters:
exceptionHandler
- the handler to set
-
setSocketFactory
Deprecated.Sets the connector's socket factory.If no factory is configured that connector will use the platform's default factory.
- Specified by:
setSocketFactory
in interfaceSocketConnector
- Parameters:
socketFactory
- the factory to set
-