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.
    • 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