Package org.jboss.as.threads
Class ThreadFactoryResolver.SimpleResolver
- java.lang.Object
-
- org.jboss.as.threads.ThreadFactoryResolver.AbstractThreadFactoryResolver
-
- org.jboss.as.threads.ThreadFactoryResolver.SimpleResolver
-
- All Implemented Interfaces:
ThreadFactoryResolver
- Enclosing interface:
- ThreadFactoryResolver
public static class ThreadFactoryResolver.SimpleResolver extends ThreadFactoryResolver.AbstractThreadFactoryResolver
ExtendsThreadFactoryResolver.AbstractThreadFactoryResolver
to deal with named thread factories by appending their simple name to a provided base name.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.threads.ThreadFactoryResolver
ThreadFactoryResolver.AbstractThreadFactoryResolver, ThreadFactoryResolver.SimpleResolver
-
-
Constructor Summary
Constructors Constructor Description SimpleResolver(org.jboss.msc.service.ServiceName threadFactoryServiceNameBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class org.jboss.as.threads.ThreadFactoryResolver.AbstractThreadFactoryResolver
getThreadGroupName, releaseNamedThreadFactory, releaseThreadFactory, resolveThreadFactory
-
-
-
-
Method Detail
-
resolveNamedThreadFactory
public org.jboss.msc.service.ServiceName resolveNamedThreadFactory(String threadFactoryName, String threadPoolName, org.jboss.msc.service.ServiceName threadPoolServiceName)
Description copied from class:ThreadFactoryResolver.AbstractThreadFactoryResolver
Create a service name to use for the thread factory in the case where a simple name for the factory was provided.- Specified by:
resolveNamedThreadFactory
in classThreadFactoryResolver.AbstractThreadFactoryResolver
- Parameters:
threadFactoryName
- the simple name of the thread factory. Will not benull
threadPoolName
- the simple name of the related thread poolthreadPoolServiceName
- the full service name of the thread pool- Returns:
- the
ServiceName
of theThreadFactoryService
the thread pool should use. Cannot benull
-
-