Package groovyx.gpars.actor

Examples of groovyx.gpars.actor.DynamicDispatchActor


     *
     * @param code The closure specifying individual message handlers.
     * @return The new started actor
     */
    public final Actor messageHandler(@DelegatesTo(Actor.class) final Closure code) {
        final DynamicDispatchActor actor = new DynamicDispatchActor().become(code);
        actor.setParallelGroup(this);
        actor.start();
        return actor;
    }
View Full Code Here


     *
     * @param code The closure specifying individual message handlers.
     * @return The new started actor
     */
    public final Actor fairMessageHandler(@DelegatesTo(Actor.class) final Closure code) {
        final DynamicDispatchActor actor = new DynamicDispatchActor().become(code);
        actor.setParallelGroup(this);
        actor.makeFair();
        actor.start();
        return actor;
    }
View Full Code Here

TOP

Related Classes of groovyx.gpars.actor.DynamicDispatchActor

Copyright © 2018 www.massapicom. 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.