public interface HandoffExecutorResolver
Modifier and Type | Interface and Description |
---|---|
static class |
HandoffExecutorResolver.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 |
HandoffExecutorResolver.SimpleResolver
Extends
HandoffExecutorResolver.AbstractThreadFactoryResolver to deal with named thread factories by appending their
simple name to a provided base name. |
Modifier and Type | Field and Description |
---|---|
static HandoffExecutorResolver |
STANDARD_RESOLVER
Standard implementation of
ThreadFactoryResolver -- a HandoffExecutorResolver.SimpleResolver with a base service name
of ThreadsServices.EXECUTOR . |
Modifier and Type | Method and Description |
---|---|
void |
releaseHandoffExecutor(String handoffExecutorName,
String threadPoolName,
org.jboss.msc.service.ServiceName threadPoolServiceName,
OperationContext context)
Releases the handoff executor, doing any necessary cleanup, such as removing a default executor that
was installed by
resolveHandoffExecutor(String, String, org.jboss.msc.service.ServiceName, org.jboss.msc.service.ServiceTarget) . |
org.jboss.msc.service.ServiceName |
resolveHandoffExecutor(String handoffExecutorName,
String threadPoolName,
org.jboss.msc.service.ServiceName threadPoolServiceName,
org.jboss.msc.service.ServiceTarget serviceTarget)
Resolves the service name of the handoff executor a thread pool service should use, optionally providing a default
executor in case the thread pool does not have a specifically configured handoff executor.
|
static final HandoffExecutorResolver STANDARD_RESOLVER
ThreadFactoryResolver
-- a HandoffExecutorResolver.SimpleResolver
with a base service name
of ThreadsServices.EXECUTOR
.org.jboss.msc.service.ServiceName resolveHandoffExecutor(String handoffExecutorName, String threadPoolName, org.jboss.msc.service.ServiceName threadPoolServiceName, org.jboss.msc.service.ServiceTarget serviceTarget)
handoffExecutorName
- the simple name of the handoff executor. Typically a reference value from
the thread pool resource's configuration. Can be null
in which case a
default handoff executor may 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 ThreadFactoryService
ServiceName
of the executor service the thread pool should use. May be null
void releaseHandoffExecutor(String handoffExecutorName, String threadPoolName, org.jboss.msc.service.ServiceName threadPoolServiceName, OperationContext context)
resolveHandoffExecutor(String, String, org.jboss.msc.service.ServiceName, org.jboss.msc.service.ServiceTarget)
.handoffExecutorName
- 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 removals
Copyright © 2023 JBoss by Red Hat. All rights reserved.