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 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: ServiceConfigurator
      Adds and configures a Service.
      Specified by:
      build in interface ServiceConfigurator
      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