https://github.com/vaci/capnproto-java-rpc rebased on top of capnproto-java master branch
Find a file
2021-08-19 10:36:46 +01:00
.github/workflows github CI workflow 2020-12-08 16:30:07 +00:00
.run add calculator example 2020-12-03 15:52:00 +00:00
benchmark Merge from upstream 2021-08-19 09:50:28 +01:00
cmake Bump the C++ standard flag up to -c++14 2020-03-03 22:06:06 -05:00
compiler Merge from upstream 2021-08-19 09:50:28 +01:00
examples Merge from upstream 2021-08-19 09:50:28 +01:00
runtime try fixing jdk version to 11 2021-08-19 10:05:52 +01:00
runtime-rpc use java11 switches and completablefutures 2021-04-05 11:05:52 +01:00
website website updates 2020-07-14 20:57:58 -04:00
.gitignore Add make as a compile task in the generator project, remove capnpc-java binary when sbt clean is run 2014-05-16 13:16:00 -04:00
.gitlab-ci.yml add gitlab CI to master 2021-03-19 13:39:39 +00:00
CHANGELOG.md Merge from upstream 2021-08-19 09:50:28 +01:00
CONTRIBUTORS ah, so that's how you spell it 2014-05-15 23:30:05 -04:00
do_benchmarks.bash set -e in do_benchmarks.bash 2020-05-12 23:04:06 -04:00
foo.raw add testEmbargoNull test 2020-11-26 15:06:20 +00:00
gen add lite mode for compiler 2020-11-07 16:56:01 +00:00
LICENSE stub package documentation 2015-01-29 10:33:45 -05:00
Makefile Merge from upstream 2021-08-19 09:50:28 +01:00
pom.xml Merge from upstream 2021-08-19 09:50:28 +01:00
README.md add some colour to the README 2021-08-19 10:36:46 +01:00
RELEASE-PROCESS.md update release process notes 2020-05-12 22:56:00 -04:00

capnproto-java: Cap'n Proto for Java

Build Status

Cap'n Proto is an extremely efficient protocol for sharing data and capabilities, and capnproto-java is a pure Java implementation.

Read more here.

This repository clone adds an implementation of the RPC framework for Java.

Promise pipelining is provided via java.util.concurrent.CompletableFuture. Unlike the KJ asynchronous model, which completes promises only when they are waited upon, a CompletableFuture can complete immediately. This may break E-ordering, as the C++ implementation relies on kj::evalLater() to defer method calls, and there is no obvious (to me, anyway) way to replicate the behaviour of kj::evalLater() with CompletableFutures.

Most of the C++ RPC test cases have been ported to this implementation, which gives me some comfort that the implementation logic is correct, but more extensive testing is required.

This implementation does not support generic interfaces. Extending the schema compiler to output code for generic interfaces is an exercise I leave to the reader.