Orbit is a framework to write distributed systems using virtual actors on the JVM. It allows developers to write highly distributed and scalable applications while greatly simplifying clustering, discovery, networking, state management, actor lifetime and more.
See the Wiki for full documentation, examples and other information.
This project was developed by Electronic Arts and is licensed under the BSD 3-Clause License.
public interface Hello extends Actor
{
Task<String> sayHello(String greeting);
}
public class HelloActor extends AbstractActor implements Hello
{
public Task<String> sayHello(String greeting)
{
getLogger().info("Here: " + greeting);
return Task.fromValue("Hello There");
}
}
Actor.getReference(Hello.class, "0").sayHello("Meep Meep");
trait Hello extends Actor
{
def sayHello(greeting: String): Task[String]
}
class HelloActor extends AbstractActor[AnyRef] with Hello
{
def sayHello(greeting: String): Task[String] =
{
getLogger.info("Here: " + greeting)
Task.fromValue("Hello There")
}
}
Actor.getReference(classOf[Hello], "0").sayHello("Meep Meep")