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 | Method and Description |
---|---|
static void |
boot(AppInit appInit,
String serviceName,
InstanceListener instanceListener,
String... args) |
static void |
boot(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) |
static Service.Builder |
usingAppInit(AppInit appInit,
String serviceName) |
public static Service.Builder usingAppInit(AppInit appInit, String serviceName)
public static Service.Builder builder(String serviceName)
public static void boot(AppInit appInit, String serviceName, String... args) throws LoadingException
LoadingException
public static void boot(AppInit appInit, String serviceName, InstanceListener instanceListener, String... args) throws LoadingException
LoadingException
public static void boot(Service service, String... args) throws LoadingException
LoadingException
public static void boot(Service service, InstanceListener instanceListener, String... args) throws LoadingException
LoadingException
public 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 upCopyright © 2016. All rights reserved.