T
- the type of value provided by services built by this builderpublic 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)
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)
Builds a service into the specified target.
|
org.jboss.msc.service.ServiceName |
getServiceName()
Returns the associated service name
|
T |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
AsynchronousServiceBuilder<T> |
startSynchronously()
Indicates that this service should *not* be started asynchronously.
|
void |
stop(org.jboss.msc.service.StopContext context) |
AsynchronousServiceBuilder<T> |
stopSynchronously()
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()
ServiceNameProvider
getServiceName
in interface ServiceNameProvider
public org.jboss.msc.service.ServiceBuilder<T> build(org.jboss.msc.service.ServiceTarget target)
Builder
public AsynchronousServiceBuilder<T> startSynchronously()
public AsynchronousServiceBuilder<T> stopSynchronously()
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 © 2017 JBoss by Red Hat. All rights reserved.