Class ActiveMQThreadFactory

  • All Implemented Interfaces:
    java.util.concurrent.ThreadFactory

    public final class ActiveMQThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      ActiveMQThreadFactory​(java.lang.String groupName, boolean daemon, java.lang.ClassLoader tccl)
      Construct a new instance.
      ActiveMQThreadFactory​(java.lang.String groupName, java.lang.String prefix, boolean daemon, java.lang.ClassLoader tccl)
      Construct a new instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ActiveMQThreadFactory defaultThreadFactory​(java.lang.String callerClassName)  
      boolean join​(int timeout, java.util.concurrent.TimeUnit timeUnit)
      It will wait all threads to finish
      java.lang.Thread newThread​(java.lang.Runnable command)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActiveMQThreadFactory

        public ActiveMQThreadFactory​(java.lang.String groupName,
                                     boolean daemon,
                                     java.lang.ClassLoader tccl)
        Construct a new instance. The access control context of the calling thread will be the one used to create new threads if a security manager is installed.
        Parameters:
        groupName - the name of the thread group to assign threads to by default
        daemon - whether the created threads should be daemon threads
        tccl - the context class loader of newly created threads
      • ActiveMQThreadFactory

        public ActiveMQThreadFactory​(java.lang.String groupName,
                                     java.lang.String prefix,
                                     boolean daemon,
                                     java.lang.ClassLoader tccl)
        Construct a new instance. The access control context of the calling thread will be the one used to create new threads if a security manager is installed.
        Parameters:
        groupName - the name of the thread group to assign threads to by default
        daemon - whether the created threads should be daemon threads
        tccl - the context class loader of newly created threads
    • Method Detail

      • newThread

        public java.lang.Thread newThread​(java.lang.Runnable command)
        Specified by:
        newThread in interface java.util.concurrent.ThreadFactory
      • join

        public boolean join​(int timeout,
                            java.util.concurrent.TimeUnit timeUnit)
        It will wait all threads to finish
      • defaultThreadFactory

        public static ActiveMQThreadFactory defaultThreadFactory​(java.lang.String callerClassName)