Class RocketChatConnector.ConnectThread

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

    protected static class RocketChatConnector.ConnectThread
    extends java.lang.Thread
    Class to set up connection.
    • Nested Class Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RocketChatSession finishUp()  
      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

      • serverUrl

        protected final java.lang.String serverUrl
      • user

        protected final java.lang.String user
      • password

        protected final java.lang.String password
      • exception

        protected java.lang.Throwable exception
    • Constructor Detail

      • ConnectThread

        public ConnectThread​(java.lang.String serverUrl,
                             java.lang.String user,
                             java.lang.String password,
                             RocketChatSession.ProxySettings proxySettings)
    • Method Detail

      • run

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

        public RocketChatSession finishUp()
                                   throws java.io.IOException,
                                          java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException