Interface ServiceInstaller.AsyncBuilder<B>

Type Parameters:
B - the builder type
All Known Subinterfaces:
ServiceInstaller.Builder, ServiceInstaller.UnaryBuilder<T,V>
All Known Implementing Classes:
ServiceInstaller.DefaultNullaryBuilder, ServiceInstaller.DefaultUnaryBuilder
Enclosing interface:
ServiceInstaller

public static interface ServiceInstaller.AsyncBuilder<B>
Implemented by builds with asynchronous service support.
  • Method Summary

    Modifier and Type
    Method
    Description
    async(Supplier<Executor> executor)
    Indicates that the installed service should start and, if a stop task was specified, stop asynchronously.
  • Method Details

    • async

      B async(Supplier<Executor> executor)
      Indicates that the installed service should start and, if a stop task was specified, stop asynchronously.
      Parameters:
      executor - supplies the executor used for asynchronous execution
      Returns:
      a reference to this builder