Package org.wildfly.clustering.service
Class AsyncServiceConfigurator
java.lang.Object
org.wildfly.clustering.service.SimpleServiceNameProvider
org.wildfly.clustering.service.AsyncServiceConfigurator
- All Implemented Interfaces:
ServiceConfigurator,ServiceNameProvider
public class AsyncServiceConfigurator
extends SimpleServiceNameProvider
implements ServiceConfigurator
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncServiceConfigurator(org.jboss.msc.service.ServiceName name) Constructs a new builder for building asynchronous service -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.msc.service.ServiceBuilder<?>build(org.jboss.msc.service.ServiceTarget target) Adds and configures aService.Indicates that this service should *not* be started asynchronously.Indicates that this service should *not* be stopped asynchronously.Methods inherited from class org.wildfly.clustering.service.SimpleServiceNameProvider
equals, getServiceName, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.service.ServiceNameProvider
getServiceName
-
Constructor Details
-
AsyncServiceConfigurator
public AsyncServiceConfigurator(org.jboss.msc.service.ServiceName name) Constructs a new builder for building asynchronous service- Parameters:
name- the target service name
-
-
Method Details
-
build
public org.jboss.msc.service.ServiceBuilder<?> build(org.jboss.msc.service.ServiceTarget target) Description copied from interface:ServiceConfiguratorAdds and configures aService.- Specified by:
buildin interfaceServiceConfigurator- Parameters:
target- a service target- Returns:
- the builder of the service.
-
startSynchronously
Indicates that this service should *not* be started asynchronously.- Returns:
- a reference to this builder
-
stopSynchronously
Indicates that this service should *not* be stopped asynchronously.- Returns:
- a reference to this builder
-