public final class AsynchronousService<T> extends Object implements org.jboss.msc.service.Service<T>
Constructor and Description |
---|
AsynchronousService(org.jboss.msc.service.Service<T> service,
org.jboss.msc.value.Value<ExecutorService> executor) |
AsynchronousService(org.jboss.msc.service.Service<T> service,
org.jboss.msc.value.Value<ExecutorService> executor,
boolean startAsynchronously,
boolean stopAsynchronously) |
Modifier and Type | Method and Description |
---|---|
static <T> org.jboss.msc.service.ServiceBuilder<T> |
addService(org.jboss.msc.service.ServiceTarget target,
org.jboss.msc.service.ServiceName name,
org.jboss.msc.service.Service<T> service) |
static <T> org.jboss.msc.service.ServiceBuilder<T> |
addService(org.jboss.msc.service.ServiceTarget target,
org.jboss.msc.service.ServiceName name,
org.jboss.msc.service.Service<T> service,
boolean startAsynchronously,
boolean stopAsynchronously) |
T |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public AsynchronousService(org.jboss.msc.service.Service<T> service, org.jboss.msc.value.Value<ExecutorService> executor)
public AsynchronousService(org.jboss.msc.service.Service<T> service, org.jboss.msc.value.Value<ExecutorService> executor, boolean startAsynchronously, boolean stopAsynchronously)
public static <T> org.jboss.msc.service.ServiceBuilder<T> addService(org.jboss.msc.service.ServiceTarget target, org.jboss.msc.service.ServiceName name, org.jboss.msc.service.Service<T> service)
public static <T> org.jboss.msc.service.ServiceBuilder<T> addService(org.jboss.msc.service.ServiceTarget target, org.jboss.msc.service.ServiceName name, org.jboss.msc.service.Service<T> service, boolean startAsynchronously, boolean stopAsynchronously)
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<T>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<T>
Copyright © 2015 JBoss by Red Hat. All rights reserved.