Package groovyx.gpars.dataflow

Examples of groovyx.gpars.dataflow.Select


     * obtain values from the supplied dataflow variables or streams as they become available.
     *
     * @param channels Dataflow variables or streams to wait for values on
     */
    public final Select select(final SelectableChannel... channels) {
        return new Select(this, channels);
    }
View Full Code Here


     * obtain values from the supplied dataflow variables or streams as they become available.
     *
     * @param channels Dataflow variables or streams to wait for values on
     */
    public final Select select(final List<SelectableChannel> channels) {
        return new Select(this, channels);
    }
View Full Code Here

            checkMaxForks(channels);
            this.actor = new ForkingDataflowSelectorActor(this, group, outputs, inputs, (Closure) code.clone(), (Integer) channels.get(MAX_FORKS));
        } else {
            this.actor = new DataflowSelectorActor(this, group, outputs, inputs, (Closure) code.clone());
        }
        select = new Select(group, inputs);
        guards = Collections.synchronizedList(new ArrayList<Boolean>((int) inputs.size()));
        //fill in the provided or default guard flags
        final List<Boolean> gs = (List<Boolean>) channels.get("guards");
        if (gs != null) {
            for (int i = 0; i < inputs.size(); i++) {
View Full Code Here

TOP

Related Classes of groovyx.gpars.dataflow.Select

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.