Package groovyx.gpars.dataflow

Examples of groovyx.gpars.dataflow.DataflowReadChannel


        queryInputs(true);
    }

    private void queryInputs(final boolean initialRun) {
        for (int i = 0; i < inputs.size(); i++) {
            final DataflowReadChannel input = (DataflowReadChannel) inputs.get(i);
            if (initialRun || !(input instanceof DataflowVariable)) {
                input.getValAsync(i, this);
            } else {
                try {
                    values.put(i, input.getVal());
                } catch (InterruptedException e) {
                    throw new IllegalStateException("couldn't read the value of a DataflowVariable inside an operator.", e);
                }
            }
        }
View Full Code Here

TOP

Related Classes of groovyx.gpars.dataflow.DataflowReadChannel

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.