public final class HttpService extends Object
HttpServerModule for binding the api RequestHandler and
HttpClientModule to add http request support to the service Client.| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
| Modifier | Constructor and Description |
|---|---|
private |
HttpService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
boot(com.spotify.apollo.AppInit appInit,
String serviceName,
InstanceListener instanceListener,
String... args) |
static void |
boot(com.spotify.apollo.AppInit appInit,
String serviceName,
String... args) |
static void |
boot(Service service,
InstanceListener instanceListener,
String... args) |
static void |
boot(Service service,
InstanceListener instanceListener,
Thread.UncaughtExceptionHandler uncaughtExceptionHandler,
String... args)
Boot up a service and wait for it to shut down.
|
static void |
boot(Service service,
String... args) |
static Service.Builder |
builder(String serviceName) |
(package private) static LoadingException |
failure(Throwable cause,
String message,
Object... args) |
(package private) static InstanceListener |
noopListener() |
static Service.Builder |
usingAppInit(com.spotify.apollo.AppInit appInit,
String serviceName) |
public static Service.Builder usingAppInit(com.spotify.apollo.AppInit appInit, String serviceName)
public static Service.Builder builder(String serviceName)
public static void boot(com.spotify.apollo.AppInit appInit,
String serviceName,
String... args)
throws LoadingException
LoadingExceptionpublic static void boot(com.spotify.apollo.AppInit appInit,
String serviceName,
InstanceListener instanceListener,
String... args)
throws LoadingException
LoadingExceptionpublic static void boot(Service service, String... args) throws LoadingException
LoadingExceptionpublic static void boot(Service service, InstanceListener instanceListener, String... args) throws LoadingException
LoadingExceptionpublic static void boot(Service service, InstanceListener instanceListener, Thread.UncaughtExceptionHandler uncaughtExceptionHandler, String... args) throws LoadingException
service - the service to startinstanceListener - gets called when a service instance has been createduncaughtExceptionHandler - an exception handler that gets invoked for the current thread
if any uncaught exceptions are thrown during service startup
or while waiting for it to shut down.args - arguments to the serviceLoadingException - in case of an error starting upstatic LoadingException failure(Throwable cause, String message, Object... args)
static InstanceListener noopListener()
Copyright © 2016. All rights reserved.