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
Extends
ThreadFactoryResolver.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
ConstructorsConstructorDescriptionSimpleResolver(org.jboss.msc.service.ServiceName threadFactoryServiceNameBase) -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.msc.service.ServiceNameresolveNamedThreadFactory(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
-
Constructor Details
-
SimpleResolver
public SimpleResolver(org.jboss.msc.service.ServiceName threadFactoryServiceNameBase)
-
-
Method Details
-
resolveNamedThreadFactory
public org.jboss.msc.service.ServiceName resolveNamedThreadFactory(String threadFactoryName, String threadPoolName, org.jboss.msc.service.ServiceName threadPoolServiceName) Description copied from class:ThreadFactoryResolver.AbstractThreadFactoryResolverCreate a service name to use for the thread factory in the case where a simple name for the factory was provided.- Specified by:
resolveNamedThreadFactoryin classThreadFactoryResolver.AbstractThreadFactoryResolver- Parameters:
threadFactoryName- the simple name of the thread factory. Will not benullthreadPoolName- the simple name of the related thread poolthreadPoolServiceName- the full service name of the thread pool- Returns:
- the
ServiceNameof theThreadFactoryServicethe thread pool should use. Cannot benull
-