org.curjent.example.agent
Class HelloWorld
java.lang.Object
org.curjent.example.agent.HelloWorld
public class HelloWorld
- extends Object
Example showing how to say "Hello World!" using an agent. It defines the
agent's interface (World) and its implementation (WorldTask). When run,
HelloWorld creates a new agent and calls hello. The curjent library runs the
WorldTask instance on a background thread and calls the task's hello method
asynchronously on that thread.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelloWorld
public HelloWorld()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright 2009-2011 Tom Landon
Apache License 2.0