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.
Builder for asynchronously started/stopped services.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionAsynchronousServiceBuilder(org.jboss.msc.service.ServiceName name, org.jboss.msc.service.Service<T> service) Deprecated.Constructs a new builder for building asynchronous service -
Method Summary
Modifier and TypeMethodDescriptionorg.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.ServiceNameDeprecated.getValue()Deprecated.voidstart(org.jboss.msc.service.StartContext context) Deprecated.Deprecated.Indicates that this service should *not* be started asynchronously.voidstop(org.jboss.msc.service.StopContext context) Deprecated.Deprecated.Indicates that this service should *not* be stopped asynchronously.
-
Constructor Details
-
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 Details
-
getServiceName
public org.jboss.msc.service.ServiceName getServiceName()Deprecated.- Specified by:
getServiceNamein interfaceServiceNameProvider
-
build
Deprecated.- Specified by:
buildin interfaceBuilder<T>- Specified by:
buildin interfaceServiceConfigurator
-
get
Deprecated.Return the underlying service for this builder -
startSynchronously
Deprecated.Indicates that this service should *not* be started asynchronously.- Returns:
- a reference to this builder
-
stopSynchronously
Deprecated.Indicates that this service should *not* be stopped asynchronously.- Returns:
- a reference to this builder
-
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.StartException Deprecated.- Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) Deprecated.- Specified by:
stopin interfaceorg.jboss.msc.Service
-
AsyncServiceConfigurator.