Skip to content

Add Netty codec samples, unit tests, and improve build JDK version settings #32

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

Merged
merged 6 commits into from
Jul 6, 2015
Merged

Conversation

rstoyanchev
Copy link
Contributor

This PR adds sample code with Netty codecs to help with #28.

One example uses Netty's LineBasedFrameDecoder to split the input stream into messages based on new line characters. Another example uses Netty's JsonObjectDecoder to split the input stream by matching curly braces + a simple Jakson-based custom decoder for actually decoding the JSON.

Both examples request one 1 item at a time and also allow configuring Netty's input buffer size to experiment with the effect of calls to channel.read. A separate PR will be sent short with example read backpressure support for discussion and comments will be added under #28.

The PR also includes a couple more minor changes:

  • set the JDK version for example projects to 1.8 vs 1.7 for the rest
  • introduce ReactorTcpHandler interface in reactor-ripc

rstoyanchev and others added 4 commits June 5, 2015 16:03
Here is the JDK level policy enforced by the Gradle build:

* in core modules, sources should be JDK 1.7 compatible
* in core modules, tests should be JDK1.8 compatible
* in example modules, sources+tests should be JDK 1.8 compatible

This commit fixes the gradle build configuration and a missing
`final` keyword in a core implementation class.

This change also switch the `reactor-net` dependency to a
`reactor-stream` dep.
Fix JDK source/target levels in projects
@rstoyanchev rstoyanchev mentioned this pull request Jun 29, 2015
@sdeleuze sdeleuze mentioned this pull request Jul 1, 2015
@sdeleuze
Copy link
Contributor

sdeleuze commented Jul 1, 2015

This PR now also contains the unit tests commit

@rstoyanchev rstoyanchev changed the title Add samples with Netty codecs Add Netty codec samples, unit tests, and improve build JDK version settings Jul 1, 2015
…ready Publishers.just

Move Publishers to common test dependency ripc-test
smaldini added a commit that referenced this pull request Jul 6, 2015
Add Netty codec samples, unit tests, and improve build JDK version settings
@smaldini smaldini merged commit 5298bfc into reactive-ipc:master Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants