Package org.jboss.as.threads
Class HandoffExecutorResolver.SimpleResolver
- java.lang.Object
-
- org.jboss.as.threads.HandoffExecutorResolver.AbstractThreadFactoryResolver
-
- org.jboss.as.threads.HandoffExecutorResolver.SimpleResolver
-
- All Implemented Interfaces:
HandoffExecutorResolver
- Enclosing interface:
- HandoffExecutorResolver
public static class HandoffExecutorResolver.SimpleResolver extends HandoffExecutorResolver.AbstractThreadFactoryResolver
ExtendsHandoffExecutorResolver.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.HandoffExecutorResolver
HandoffExecutorResolver.AbstractThreadFactoryResolver, HandoffExecutorResolver.SimpleResolver
-
-
Field Summary
-
Fields inherited from interface org.jboss.as.threads.HandoffExecutorResolver
STANDARD_RESOLVER
-
-
Constructor Summary
Constructors Constructor Description SimpleResolver(org.jboss.msc.service.ServiceName handoffExecutorServiceNameBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.msc.service.ServiceName
resolveNamedHandoffExecutor(String handoffExecutorName, 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.HandoffExecutorResolver.AbstractThreadFactoryResolver
releaseDefaultHandoffExecutor, releaseHandoffExecutor, releaseNamedHandoffExecutor, resolveDefaultHandoffExecutor, resolveHandoffExecutor
-
-
-
-
Method Detail
-
resolveNamedHandoffExecutor
public org.jboss.msc.service.ServiceName resolveNamedHandoffExecutor(String handoffExecutorName, String threadPoolName, org.jboss.msc.service.ServiceName threadPoolServiceName)
Description copied from class:HandoffExecutorResolver.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:
resolveNamedHandoffExecutor
in classHandoffExecutorResolver.AbstractThreadFactoryResolver
- Parameters:
handoffExecutorName
- 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
-
-