Class InterruptibleSocketFactory.SocketCreateThread

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    InterruptibleSocketFactory

    protected static class InterruptibleSocketFactory.SocketCreateThread
    extends java.lang.Thread
    Create a secure socket in a thread, so that we can "give up" after a while if the socket fails to connect.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.net.InetAddress clientHost  
      protected int clientPort  
      protected java.net.InetAddress host  
      protected int port  
      protected java.net.Socket rval  
      protected javax.net.ssl.SSLSocketFactory socketFactory  
      protected java.lang.Throwable throwable  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      SocketCreateThread​(javax.net.ssl.SSLSocketFactory socketFactory, java.net.InetAddress host, int port, java.net.InetAddress clientHost, int clientPort)
      Create the thread
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getException()  
      java.net.Socket getResult()  
      void run()  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • socketFactory

        protected javax.net.ssl.SSLSocketFactory socketFactory
      • host

        protected java.net.InetAddress host
      • port

        protected int port
      • clientHost

        protected java.net.InetAddress clientHost
      • clientPort

        protected int clientPort
      • rval

        protected java.net.Socket rval
      • throwable

        protected java.lang.Throwable throwable
    • Constructor Detail

      • SocketCreateThread

        public SocketCreateThread​(javax.net.ssl.SSLSocketFactory socketFactory,
                                  java.net.InetAddress host,
                                  int port,
                                  java.net.InetAddress clientHost,
                                  int clientPort)
        Create the thread
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • getException

        public java.lang.Throwable getException()
      • getResult

        public java.net.Socket getResult()