From 0d2522248772d67779162f92757ecfce3822a9f4 Mon Sep 17 00:00:00 2001 From: RuedigerMoeller Date: Sun, 11 May 2014 19:50:30 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index bf3933622..0592cd634 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,14 @@ with code completion and refactoring of modern IDEs. [SampleApp - a nio http 1.0 webserver skeleton done with actors](https://github.com/RuedigerMoeller/kontraktor-samples/tree/master/src/main/java/samples/niohttp) +```xml + + de.ruedigermoeller + kontraktor + LATEST + +``` + Kontraktor uses runtime-generated (javassist) proxy instances which put all calls to the proxy onto a queue. A DispatcherThread then dequeues method invocations (=messages) ensuring single-threadedness of actor execution. Kontraktor is work in progress, but 1.0 should be near. It's only 9 classes + some annotations. From aecdd2a866ec12f3cbe7b9a656d3f81a23a24e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20M=C3=B6ller?= Date: Mon, 12 May 2014 12:33:37 +0200 Subject: [PATCH 2/2] . --- .../java/de/ruedigermoeller/kontraktor/RuedisPlayground.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/de/ruedigermoeller/kontraktor/RuedisPlayground.java b/src/main/java/de/ruedigermoeller/kontraktor/RuedisPlayground.java index 6c836197d..70c73a9e7 100644 --- a/src/main/java/de/ruedigermoeller/kontraktor/RuedisPlayground.java +++ b/src/main/java/de/ruedigermoeller/kontraktor/RuedisPlayground.java @@ -63,6 +63,10 @@ public static void main(String arg[]) throws InterruptedException { ServiceActor service = Actors.AsActor(ServiceActor.class); MyActor cbActor = Actors.AsActor(MyActor.class); cbActor.init(service); + + service.getDispatcher().setName("service"); + cbActor.getDispatcher().setName("actor"); + cbActor.callbackTest(); Thread.sleep(10000);