public class CachedThreadPoolExecutorServiceConfigurator extends SimpleServiceNameProvider implements ServiceConfigurator, Function<ExecutorService,ExecutorService>, Supplier<ExecutorService>, Consumer<ExecutorService>
Constructor and Description |
---|
CachedThreadPoolExecutorServiceConfigurator(org.jboss.msc.service.ServiceName name,
ThreadFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExecutorService executor) |
ExecutorService |
apply(ExecutorService executor) |
org.jboss.msc.service.ServiceBuilder<?> |
build(org.jboss.msc.service.ServiceTarget target)
Adds and configures a
Service . |
ExecutorService |
get() |
equals, getServiceName, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getServiceName
public CachedThreadPoolExecutorServiceConfigurator(org.jboss.msc.service.ServiceName name, ThreadFactory factory)
public ExecutorService apply(ExecutorService executor)
apply
in interface Function<ExecutorService,ExecutorService>
public ExecutorService get()
get
in interface Supplier<ExecutorService>
public void accept(ExecutorService executor)
accept
in interface Consumer<ExecutorService>
public org.jboss.msc.service.ServiceBuilder<?> build(org.jboss.msc.service.ServiceTarget target)
ServiceConfigurator
Service
.build
in interface ServiceConfigurator
target
- a service targetCopyright © 2019 JBoss by Red Hat. All rights reserved.