Package org.agilewiki.jactor.parallel

Examples of org.agilewiki.jactor.parallel.JAResponseCounter2


public class ParallelResponsePrinter extends JLPCActor {
    public void printParallelResponse(int count,
                                      Actor[] responsePrinters,
                                      PrintResponse printResponse,
                                      RP rp) throws Exception {
        JAResponseCounter2 psrp = new JAResponseCounter2(rp);
        int i = 0;
        while (i < count) {
            System.out.println(i);
            printResponse.send(this, responsePrinters[i], psrp);
            i += 1;
        }
        psrp.sent = count;
        psrp.finished();
        System.out.println(count + " sends");
    }
View Full Code Here

TOP

Related Classes of org.agilewiki.jactor.parallel.JAResponseCounter2

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.