BaseApplicationEngine
Base class for implementing ApplicationEngine
It creates default engine pipeline, provides application property and installs default transformations on respond and receive
Parameters
instance of ApplicationEngineEnvironment for this engine
pipeline to use with this engine
Constructors
Types
Configuration for the BaseApplicationEngine
Functions
Local addresses for application connectors. If environment's connectors was configured to use port=0, you can use this function to get an actual port for these connectors. Available after a server is started.
Starts this ApplicationEngine.
Stops this ApplicationEngine.
Properties
Extensions
Adds automatic application shutdown hooks management. Should be used before starting the engine. Once application termination noticed, stop block will be executed. Please note that a shutdown hook only registered when the application is running. If the application is already stopped then there will be no hook and no stop function invocation possible. So stop block will be called once or never.
Adds automatic JVM shutdown hooks management. Should be used before starting the engine. Once JVM termination noticed, stop block will be executed. Please note that a shutdown hook only registered when the application is running. If the application is already stopped then there will be no hook and no stop function invocation possible. So stop block will be called once or never.
Adds automatic application shutdown hooks management. Should be used before starting the engine. Once application termination noticed, stop block will be executed. Please note that a shutdown hook only registered when the application is running. If the application is already stopped then there will be no hook and no stop function invocation possible. So stop block will be called once or never.
Stops this ApplicationEngine
Stop server on job cancellation. The returned deferred need to be completed or cancelled.