ApplicationΒΆ

The Application object holds all of the global state and configuration data across multiple server objects. It should be configured and instantiated by an ApplicationBootstrap instance.

1
2
3
4
Application application = new ApplicationBootstrap("example.application")
  .addServer("echo", (serverBootstrap) -> serverBootstrap.addToPipeline(new EchoPipeline()))
  .addServer("http", (serverBootstrap) -> serverBootstrap.addToPipeline(new HttpPipeline()))
  .build();

Each application will be created with a configuration server which may be used to update dynamic configuration values while the application is running.