Package groovyx.gpars.actor

Examples of groovyx.gpars.actor.Actor.send()


public class StatefulActorTest {
    @Test
    public void testStatefulActor() throws Exception {
        final Actor actor = new MyActor();
        actor.start();
        actor.send("Hello");
        actor.send("Hello again");
        actor.send(10);

        actor.send("Bye");
        actor.send("Bye again");
View Full Code Here


    @Test
    public void testStatefulActor() throws Exception {
        final Actor actor = new MyActor();
        actor.start();
        actor.send("Hello");
        actor.send("Hello again");
        actor.send(10);

        actor.send("Bye");
        actor.send("Bye again");
        actor.send(10);
View Full Code Here

    public void testStatefulActor() throws Exception {
        final Actor actor = new MyActor();
        actor.start();
        actor.send("Hello");
        actor.send("Hello again");
        actor.send(10);

        actor.send("Bye");
        actor.send("Bye again");
        actor.send(10);
View Full Code Here

        actor.start();
        actor.send("Hello");
        actor.send("Hello again");
        actor.send(10);

        actor.send("Bye");
        actor.send("Bye again");
        actor.send(10);

        Thread.sleep(2000L);
View Full Code Here

        actor.send("Hello");
        actor.send("Hello again");
        actor.send(10);

        actor.send("Bye");
        actor.send("Bye again");
        actor.send(10);

        Thread.sleep(2000L);

    }
View Full Code Here

        actor.send("Hello again");
        actor.send(10);

        actor.send("Bye");
        actor.send("Bye again");
        actor.send(10);

        Thread.sleep(2000L);

    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.