Class JMSConnector.AsyncConnection

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

    protected abstract class JMSConnector.AsyncConnection
    extends java.lang.Thread
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected class  JMSConnector.AsyncConnection.ListenerSession  
      • Nested classes/interfaces inherited from class java.lang.Thread

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

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AsyncConnection​(ConnectionFactory connectionFactory, javax.jms.Connection connection, java.lang.String threadName, java.lang.String clientID, java.lang.String username, java.lang.String password)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract JMSConnector.AsyncConnection.ListenerSession createListenerSession​(javax.jms.Connection connection, Subscription subscription)  
      protected void onConnect()  
      protected void onException()  
      protected void onShutdown()  
      • 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
    • Constructor Detail

      • AsyncConnection

        protected AsyncConnection​(ConnectionFactory connectionFactory,
                                  javax.jms.Connection connection,
                                  java.lang.String threadName,
                                  java.lang.String clientID,
                                  java.lang.String username,
                                  java.lang.String password)
                           throws JMSException
        Throws:
        JMSException
    • Method Detail

      • onShutdown

        protected void onShutdown()
      • onConnect

        protected void onConnect()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • onException

        protected void onException()