Package ch.qos.logback.core.net
Interface SocketConnector
-
- All Superinterfaces:
java.util.concurrent.Callable<java.net.Socket>
- All Known Implementing Classes:
DefaultSocketConnector
@Deprecated(since="2022-01-27") public interface SocketConnector extends java.util.concurrent.Callable<java.net.Socket>
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.ARunnable
that (re)connects a socket.An implementation of this interface is responsible for repeatedly attempting to create a socket connection to a remote host.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SocketConnector.ExceptionHandler
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.net.Socket
call()
Deprecated.Blocks the calling thread until a connection is successfully established.void
setExceptionHandler(SocketConnector.ExceptionHandler exceptionHandler)
Deprecated.Sets the connector's exception handler.void
setSocketFactory(javax.net.SocketFactory socketFactory)
Deprecated.Sets the connector's socket factory.
-
-
-
Method Detail
-
call
java.net.Socket call() throws java.lang.InterruptedException
Deprecated.Blocks the calling thread until a connection is successfully established.- Specified by:
call
in interfacejava.util.concurrent.Callable<java.net.Socket>
- Returns:
- the connected socket
- Throws:
java.lang.InterruptedException
-
setExceptionHandler
void setExceptionHandler(SocketConnector.ExceptionHandler exceptionHandler)
Deprecated.Sets the connector's exception handler.The handler must be set before the
call()
method is invoked.- Parameters:
exceptionHandler
- the handler to set
-
setSocketFactory
void setSocketFactory(javax.net.SocketFactory socketFactory)
Deprecated.Sets the connector's socket factory.If no factory is configured that connector will use the platform's default factory.
- Parameters:
socketFactory
- the factory to set
-
-