Package | Description |
---|---|
com.spotify.apollo.core | |
com.spotify.apollo.httpservice |
Modifier and Type | Method and Description |
---|---|
Service.Builder |
Service.Builder.usingModuleDiscovery(boolean moduleDiscovery)
Enables or disables module discovery, which will use SPI to discover all available modules on
the classpath.
|
static Service.Builder |
Services.usingName(String serviceName) |
Service.Builder |
Service.Builder.withCliHelp(boolean enabled)
Enables/disables whether Apollo should handle the
--help/-h flags and display
command-line help. |
Service.Builder |
Service.Builder.withEnvVarPrefix(String prefix)
Sets the prefix that is used to convert environment variables into configuration keys.
|
Service.Builder |
Service.Builder.withModule(ApolloModule module)
Registers the specified module as loadable by this service.
|
Service.Builder |
Service.Builder.withRuntime(Runtime runtime)
The Java runtime to use when constructing service instances.
|
Service.Builder |
Service.Builder.withShutdownInterrupt(boolean enabled)
Enables/disables whether the thread calling
Service.start(String...) will be
interrupted when the application is requested to shut down. |
Service.Builder |
Service.Builder.withWatchdogTimeout(long timeout,
TimeUnit unit)
Sets the timeout for how long Apollo will wait for the service to clean itself up upon
shutdown.
|
Modifier and Type | Method and Description |
---|---|
static Service.Builder |
HttpService.builder(String serviceName) |
static Service.Builder |
HttpService.usingAppInit(AppInit appInit,
String serviceName) |
Copyright © 2016. All rights reserved.