Class ControllerThreadSocketFactory


  • public final class ControllerThreadSocketFactory
    extends Object
    This helper class is intedned to help work around the limitation of older Java versions (older than 1.4) that prevents from specifying a connection timeout when creating a socket. This factory executes a controller thread overssing the process of socket initialisation. If the socket constructor cannot be created within the specified time limit, the controller terminates and throws an ConnectTimeoutException
    Since:
    3.0
    Author:
    Ortwin Glueck, Oleg Kalnichevski