Class 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
    • 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 name
        service - the target service
    • Method Detail

      • build

        public org.jboss.msc.service.ServiceBuilder<T> build​(org.jboss.msc.service.ServiceTarget target)
        Deprecated.
        Specified by:
        build in interface Builder<T>
        Specified by:
        build in interface ServiceConfigurator
      • get

        public org.jboss.msc.service.Service<T> get()
        Deprecated.
        Return the underlying service for this builder
        Specified by:
        get in interface Supplier<T>
        Returns:
        an MSC service
      • 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:
        getValue in interface org.jboss.msc.value.Value<T>
      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Deprecated.
        Specified by:
        start in interface org.jboss.msc.Service
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Deprecated.
        Specified by:
        stop in interface org.jboss.msc.Service