T - the type of value provided by services built by this builderAsyncServiceConfigurator.@Deprecated public class AsynchronousServiceBuilder<T> extends Object implements org.wildfly.clustering.service.Builder<T>, org.jboss.msc.service.Service<T>, Supplier<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.
|
org.jboss.msc.service.Service<T> |
get()
Deprecated.
Return the underlying service for this builder
|
org.jboss.msc.service.ServiceName |
getServiceName()
Deprecated.
|
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()
getServiceName in interface org.wildfly.clustering.service.ServiceNameProviderpublic org.jboss.msc.service.ServiceBuilder<T> build(org.jboss.msc.service.ServiceTarget target)
build in interface org.wildfly.clustering.service.Builder<T>build in interface org.wildfly.clustering.service.ServiceConfiguratorpublic org.jboss.msc.service.Service<T> get()
public 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 © 2022 JBoss by Red Hat. All rights reserved.