OpenSearch/modules/transport-netty4
Ryan Ernst df8dc64e9b Plugins: Make NamedWriteableRegistry immutable and add extenion point for named writeables
Currently any code that wants to added NamedWriteables to the
NamedWriteableRegistry can do so via guice injection of the registry,
and registering at construction time. However, this makes the registry
complex: it has both get and register methods synchronized, and there is
likely contention on the read side from multiple threads.  The
registration has mostly already been contained to guice modules at node
construction time.

This change makes the registry immutable, taking all of the
NamedWriteable readers at construction time. It also allows plugins to
added arbitrary named writables that it may use in its own transport
actions.
2016-08-02 15:56:25 -07:00
..
licenses Dependencies: Upgrade to netty 4.1.4 (#19689) 2016-07-29 17:53:12 +02:00
src Plugins: Make NamedWriteableRegistry immutable and add extenion point for named writeables 2016-08-02 15:56:25 -07:00
build.gradle Default transport and HTTP to Netty 4 2016-08-02 12:19:19 -04:00