T - the type of value provided by services built by this builderAsyncServiceConfigurator.@Deprecated public class AsynchronousServiceBuilder<T> extends Object implements Builder<T>, org.jboss.msc.service.Service<T>
| Constructor and Description |
|---|
AsynchronousServiceBuilder(org.jboss.msc.service.ServiceName name,
org.jboss.msc.service.Service<T> service)
Deprecated.
Constructs a new builder for building asynchronous service
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.msc.service.ServiceBuilder<T> |
build(org.jboss.msc.service.ServiceTarget target)
Deprecated.
Builds a service into the specified target.
|
org.jboss.msc.service.ServiceName |
getServiceName()
Deprecated.
Returns the associated service name
|
T |
getValue()
Deprecated.
|
void |
start(org.jboss.msc.service.StartContext context)
Deprecated.
|
AsynchronousServiceBuilder<T> |
startSynchronously()
Deprecated.
Indicates that this service should *not* be started asynchronously.
|
void |
stop(org.jboss.msc.service.StopContext context)
Deprecated.
|
AsynchronousServiceBuilder<T> |
stopSynchronously()
Deprecated.
Indicates that this service should *not* be stopped asynchronously.
|
public AsynchronousServiceBuilder(org.jboss.msc.service.ServiceName name,
org.jboss.msc.service.Service<T> service)
name - the target service nameservice - the target servicepublic org.jboss.msc.service.ServiceName getServiceName()
ServiceNameProvidergetServiceName in interface ServiceNameProviderpublic org.jboss.msc.service.ServiceBuilder<T> build(org.jboss.msc.service.ServiceTarget target)
Builderbuild in interface Builder<T>build in interface ServiceConfiguratortarget - the service installation targetpublic AsynchronousServiceBuilder<T> startSynchronously()
public AsynchronousServiceBuilder<T> stopSynchronously()
public T getValue()
getValue in interface org.jboss.msc.value.Value<T>public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.ServiceCopyright © 2018 JBoss by Red Hat. All rights reserved.