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