Class DefaultSocketConnector

  • All Implemented Interfaces:
    SocketConnector, java.util.concurrent.Callable<java.net.Socket>

    @Deprecated(since="2022-01-27")
    public class DefaultSocketConnector
    extends java.lang.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
    • Constructor Detail

      • DefaultSocketConnector

        public DefaultSocketConnector​(java.net.InetAddress address,
                                      int port,
                                      long initialDelay,
                                      long retryDelay)
        Deprecated.
        Constructs a new connector.
        Parameters:
        address - address of remote listener
        port - port of remote listener
        initialDelay - delay before initial connection attempt
        retryDelay - delay after failed connection attempt
      • DefaultSocketConnector

        public DefaultSocketConnector​(java.net.InetAddress address,
                                      int port,
                                      DelayStrategy delayStrategy)
        Deprecated.
        Constructs a new connector.
        Parameters:
        address - address of remote listener
        port - port of remote listener
        delayStrategy - strategy for choosing the delay to impose before each connection attempt
    • Method Detail

      • call

        public java.net.Socket call()
                             throws java.lang.InterruptedException
        Deprecated.
        Loops until the desired connection is established and returns the resulting connector.
        Specified by:
        call in interface java.util.concurrent.Callable<java.net.Socket>
        Specified by:
        call in interface SocketConnector
        Returns:
        the connected socket
        Throws:
        java.lang.InterruptedException
      • setSocketFactory

        public 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.

        Specified by:
        setSocketFactory in interface SocketConnector
        Parameters:
        socketFactory - the factory to set