Class ThreadFactoryResolver.AbstractThreadFactoryResolver

    • Constructor Detail

      • AbstractThreadFactoryResolver

        public AbstractThreadFactoryResolver()
    • Method Detail

      • resolveThreadFactory

        public org.jboss.msc.service.ServiceName resolveThreadFactory​(String threadFactoryName,
                                                                      String threadPoolName,
                                                                      org.jboss.msc.service.ServiceName threadPoolServiceName,
                                                                      org.jboss.msc.service.ServiceTarget serviceTarget)
        Description copied from interface: ThreadFactoryResolver
        Resolves the service name of the thread factory a thread pool service should use, providing a default thread factory in case the thread pool does not have a specifically configured thread factory.
        Specified by:
        resolveThreadFactory in interface ThreadFactoryResolver
        Parameters:
        threadFactoryName - the simple name of the thread factory. Typically a reference value from the thread pool resource's configuration. Can be null in which case a default thread factory should be returned.
        threadPoolName - the name of the thread pool
        threadPoolServiceName - the full name of the Service that provides the thread pool
        serviceTarget - service target that is installing the thread pool service; can be used to install a ThreadFactoryService
        Returns:
        the ServiceName of the ThreadFactoryService the thread pool should use. Cannot be null
      • resolveNamedThreadFactory

        protected abstract org.jboss.msc.service.ServiceName resolveNamedThreadFactory​(String threadFactoryName,
                                                                                       String threadPoolName,
                                                                                       org.jboss.msc.service.ServiceName threadPoolServiceName)
        Create a service name to use for the thread factory in the case where a simple name for the factory was provided.
        Parameters:
        threadFactoryName - the simple name of the thread factory. Will not be null
        threadPoolName - the simple name of the related thread pool
        threadPoolServiceName - the full service name of the thread pool
        Returns:
        the ServiceName of the ThreadFactoryService the thread pool should use. Cannot be null
      • releaseNamedThreadFactory

        protected void releaseNamedThreadFactory​(String threadFactoryName,
                                                 String threadPoolName,
                                                 org.jboss.msc.service.ServiceName threadPoolServiceName,
                                                 OperationContext context)
        Handles the work of releaseThreadFactory(String, String, ServiceName, OperationContext) for the case where threadFactoryName is not null. This default implementation does nothing, assuming the thread factory is independently managed from the pool.
        Parameters:
        threadFactoryName - the simple name of the thread factory. Will not be null
        threadPoolName - the simple name of the related thread pool
        threadPoolServiceName - the full service name of the thread pool
        context - the context of the current operation; can be used to perform any necessary service removals
      • getThreadGroupName

        protected String getThreadGroupName​(String threadPoolName)