public interface ThreadFactoryResolver
| Modifier and Type | Interface and Description |
|---|---|
static class |
ThreadFactoryResolver.AbstractThreadFactoryResolver
Base class for
ThreadFactoryResolver implementations that handles the case of a null
threadFactoryName by installing a ThreadFactoryService whose service name is
the service name of the thread pool with thread-factory appended. |
static class |
ThreadFactoryResolver.SimpleResolver
Extends
ThreadFactoryResolver.AbstractThreadFactoryResolver to deal with named thread factories by appending their
simple name to a provided base name. |
| Modifier and Type | Method and Description |
|---|---|
void |
releaseThreadFactory(String threadFactoryName,
String threadPoolName,
org.jboss.msc.service.ServiceName threadPoolServiceName,
OperationContext context)
Releases the thread factory, doing any necessary cleanup, such as removing a default thread factory that
was installed by
resolveThreadFactory(String, String, org.jboss.msc.service.ServiceName, org.jboss.msc.service.ServiceTarget). |
org.jboss.msc.service.ServiceName |
resolveThreadFactory(String threadFactoryName,
String threadPoolName,
org.jboss.msc.service.ServiceName threadPoolServiceName,
org.jboss.msc.service.ServiceTarget serviceTarget)
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.
|
org.jboss.msc.service.ServiceName resolveThreadFactory(String threadFactoryName, String threadPoolName, org.jboss.msc.service.ServiceName threadPoolServiceName, org.jboss.msc.service.ServiceTarget serviceTarget)
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 poolthreadPoolServiceName - the full name of the Service that provides the thread poolserviceTarget - service target that is installing the thread pool service; can be used to install
a ThreadFactoryServiceServiceName of the ThreadFactoryService the thread pool should use. Cannot be
nullvoid releaseThreadFactory(String threadFactoryName, String threadPoolName, org.jboss.msc.service.ServiceName threadPoolServiceName, OperationContext context)
resolveThreadFactory(String, String, org.jboss.msc.service.ServiceName, org.jboss.msc.service.ServiceTarget).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 released.threadPoolName - the name of the thread poolthreadPoolServiceName - the full name of the Service that provides the thread poolcontext - the context of the current operation; can be used to perform any necessary
service removalsCopyright © 2019 JBoss by Red Hat. All rights reserved.