Package io.activej.launchers.http
Class MultithreadedHttpServerLauncher
java.lang.Object
io.activej.launcher.Launcher
io.activej.launchers.http.MultithreadedHttpServerLauncher
public abstract class MultithreadedHttpServerLauncher
extends io.activej.launcher.Launcher
-
Field Summary
Fields Modifier and Type Field Description static intPORTstatic StringPROPERTIES_FILEstatic intWORKERS -
Constructor Summary
Constructors Constructor Description MultithreadedHttpServerLauncher() -
Method Summary
Modifier and Type Method Description protected io.activej.inject.module.ModulegetBusinessLogicModule()protected io.activej.inject.module.ModulegetModule()static voidmain(String[] args)protected voidrun()Methods inherited from class io.activej.launcher.Launcher
awaitShutdown, createInjector, createInjector, getApplicationError, getArgs, getCompleteFuture, getDuration, getDurationOfRun, getDurationOfStart, getDurationOfStop, getInstantOfComplete, getInstantOfLaunch, getInstantOfRun, getInstantOfStart, getInstantOfStop, getMainThread, getOverrideModule, getRunFuture, getStartFuture, launch, onInit, onStart, onStop, shutdown, testInjector
-
Field Details
-
PORT
public static final int PORT- See Also:
- Constant Field Values
-
WORKERS
public static final int WORKERS- See Also:
- Constant Field Values
-
PROPERTIES_FILE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
MultithreadedHttpServerLauncher
public MultithreadedHttpServerLauncher()
-
-
Method Details
-
getModule
protected final io.activej.inject.module.Module getModule()- Overrides:
getModulein classio.activej.launcher.Launcher
-
getBusinessLogicModule
protected io.activej.inject.module.Module getBusinessLogicModule() -
run
- Specified by:
runin classio.activej.launcher.Launcher- Throws:
Exception
-
main
- Throws:
Exception
-