Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a simpler embedded server API #61

Closed
sdeleuze opened this issue Mar 13, 2017 · 1 comment
Closed

Provide a simpler embedded server API #61

sdeleuze opened this issue Mar 13, 2017 · 1 comment
Assignees
Labels
type/enhancement A general enhancement
Milestone

Comments

@sdeleuze
Copy link
Contributor

Current Reactor Netty API is not very straightforward when it comes to just run it from a main, see for example this code sample where AtomicReference<NettyContext> is needed.

Could we have something like startAndAwait() method and something to add handlers in a more friendly fashion?

@smaldini smaldini modified the milestone: 0.6.3.RELEASE Apr 7, 2017
@sdeleuze
Copy link
Contributor Author

An example why this is important : http://blog.alexnesterov.com/post/spring-your-next-microframework/

@smaldini smaldini added the type/enhancement A general enhancement label May 3, 2017
@smaldini smaldini modified the milestones: 0.6.3.RELEASE, 0.7.0.RELEASE May 3, 2017
@simonbasle simonbasle modified the milestones: 0.7.0.RELEASE, 0.7.0.M1 Jun 19, 2017
@simonbasle simonbasle self-assigned this Jun 19, 2017
utwyko pushed a commit to utwyko/reactor-netty that referenced this issue Jul 6, 2017
This commit offers a simplified API to start/stop client and servers in a
blocking fashion.

 - `start` method blocks until initialized, then offers a simplified API to
 shutdown.
 - `startAndAwait` blocks for the whole lifecycle of the client/server, which
 would usually be used in a main class (only way to shut down some servers
 would be to sigkill).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants