Class AsynchronousServiceBuilder<T>
- java.lang.Object
-
- org.wildfly.clustering.singleton.server.AsynchronousServiceBuilder<T>
-
- Type Parameters:
T- the type of value provided by services built by this builder
- All Implemented Interfaces:
Supplier<org.jboss.msc.service.Service<T>>,org.jboss.msc.Service,org.jboss.msc.service.Service<T>,org.jboss.msc.value.Value<T>,Builder<T>,ServiceConfigurator,ServiceNameProvider
@Deprecated public class AsynchronousServiceBuilder<T> extends Object implements Builder<T>, org.jboss.msc.service.Service<T>, Supplier<org.jboss.msc.service.Service<T>>
Deprecated.Replaced byAsyncServiceConfigurator.Builder for asynchronously started/stopped services.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description AsynchronousServiceBuilder(org.jboss.msc.service.ServiceName name, org.jboss.msc.service.Service<T> service)Deprecated.Constructs a new builder for building asynchronous service
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 builderorg.jboss.msc.service.ServiceNamegetServiceName()Deprecated.TgetValue()Deprecated.voidstart(org.jboss.msc.service.StartContext context)Deprecated.AsynchronousServiceBuilder<T>startSynchronously()Deprecated.Indicates that this service should *not* be started asynchronously.voidstop(org.jboss.msc.service.StopContext context)Deprecated.AsynchronousServiceBuilder<T>stopSynchronously()Deprecated.Indicates that this service should *not* be stopped asynchronously.
-
-
-
Constructor Detail
-
AsynchronousServiceBuilder
public AsynchronousServiceBuilder(org.jboss.msc.service.ServiceName name, org.jboss.msc.service.Service<T> service)Deprecated.Constructs a new builder for building asynchronous service- Parameters:
name- the target service nameservice- the target service
-
-
Method Detail
-
getServiceName
public org.jboss.msc.service.ServiceName getServiceName()
Deprecated.- Specified by:
getServiceNamein interfaceServiceNameProvider
-
build
public org.jboss.msc.service.ServiceBuilder<T> build(org.jboss.msc.service.ServiceTarget target)
Deprecated.- Specified by:
buildin interfaceBuilder<T>- Specified by:
buildin interfaceServiceConfigurator
-
get
public org.jboss.msc.service.Service<T> get()
Deprecated.Return the underlying service for this builder
-
startSynchronously
public AsynchronousServiceBuilder<T> startSynchronously()
Deprecated.Indicates that this service should *not* be started asynchronously.- Returns:
- a reference to this builder
-
stopSynchronously
public AsynchronousServiceBuilder<T> stopSynchronously()
Deprecated.Indicates that this service should *not* be stopped asynchronously.- Returns:
- a reference to this builder
-
getValue
public T getValue()
Deprecated.- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<T>
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartExceptionDeprecated.- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<T>- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
Deprecated.- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<T>
-
-