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
Constructors Constructor Description AsyncServiceConfigurator(org.jboss.msc.service.ServiceName name)Constructs a new builder for building asynchronous service
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.msc.service.ServiceBuilder<?>build(org.jboss.msc.service.ServiceTarget target)Adds and configures aService.AsyncServiceConfiguratorstartSynchronously()Indicates that this service should *not* be started asynchronously.AsyncServiceConfiguratorstopSynchronously()Indicates that this service should *not* be stopped asynchronously.-
Methods inherited from class org.wildfly.clustering.service.SimpleServiceNameProvider
equals, getServiceName, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.service.ServiceNameProvider
getServiceName
-
-
-
-
Method Detail
-
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
public AsyncServiceConfigurator startSynchronously()
Indicates that this service should *not* be started asynchronously.- Returns:
- a reference to this builder
-
stopSynchronously
public AsyncServiceConfigurator stopSynchronously()
Indicates that this service should *not* be stopped asynchronously.- Returns:
- a reference to this builder
-
-