public static class ThreadFactoryResolver.SimpleResolver extends ThreadFactoryResolver.AbstractThreadFactoryResolver
ThreadFactoryResolver.AbstractThreadFactoryResolver
to deal with named thread factories by appending their
simple name to a provided base name.ThreadFactoryResolver.AbstractThreadFactoryResolver, ThreadFactoryResolver.SimpleResolver
Constructor and Description |
---|
SimpleResolver(org.jboss.msc.service.ServiceName threadFactoryServiceNameBase) |
Modifier and Type | Method and 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.
|
getThreadGroupName, releaseNamedThreadFactory, releaseThreadFactory, resolveThreadFactory
public SimpleResolver(org.jboss.msc.service.ServiceName threadFactoryServiceNameBase)
public org.jboss.msc.service.ServiceName resolveNamedThreadFactory(String threadFactoryName, String threadPoolName, org.jboss.msc.service.ServiceName threadPoolServiceName)
ThreadFactoryResolver.AbstractThreadFactoryResolver
resolveNamedThreadFactory
in class ThreadFactoryResolver.AbstractThreadFactoryResolver
threadFactoryName
- the simple name of the thread factory. Will not be null
threadPoolName
- the simple name of the related thread poolthreadPoolServiceName
- the full service name of the thread poolServiceName
of the ThreadFactoryService
the thread pool should use. Cannot be
null
Copyright © 2023 JBoss by Red Hat. All rights reserved.