netty5/transport/src
Norman Maurer c6a3729e4c Ensure handlerAdded(...) and handlerRemoved(...) is always called from the right thread
Motiviation:

We should ensure that handlerAdded(...) and handlerRemoved(...) is always called from the EventExecutor that also invokes the other methods of the ChannelHandler. Also we need to ensure we always call handlerAdded(...) before any other method can be calld to ensure correct ordering.

Motifications:

- Ensure that the right thread is used to call the methods
- Ensure correct ordering
- Add tests

Result:

Respect the thread-model for handlerAdded(...) and handlerRemoved(...) and preserve correct ordering in all cases.
2016-02-12 11:18:40 -08:00
..
main/java/io/netty Ensure handlerAdded(...) and handlerRemoved(...) is always called from the right thread 2016-02-12 11:18:40 -08:00
test/java/io/netty Ensure handlerAdded(...) and handlerRemoved(...) is always called from the right thread 2016-02-12 11:18:40 -08:00