Package groovyx.gpars.dataflow.operator

Examples of groovyx.gpars.dataflow.operator.DataflowPrioritySelector


     * @param channels A map specifying "inputs" and "outputs" - dataflow channels (instances of the DataflowQueue or DataflowVariable classes) to use for inputs and outputs
     * @param code     The selector's body to run each time a value is available in any of the inputs channels
     * @return A new started selector instance with all the channels set
     */
    public final DataflowProcessor prioritySelector(final Map channels, @DelegatesTo(DataflowSelector.class) final Closure code) {
        return new DataflowPrioritySelector(this, channels, code).start();
    }
View Full Code Here


     */
    public final DataflowProcessor prioritySelector(final List inputChannels, final List outputChannels, @DelegatesTo(DataflowSelector.class) final Closure code) {
        final HashMap<String, Object> params = new HashMap<String, Object>(5);
        params.put(DataflowProcessor.INPUTS, inputChannels);
        params.put(DataflowProcessor.OUTPUTS, outputChannels);
        return new DataflowPrioritySelector(this, params, code).start();
    }
View Full Code Here

     *
     * @param channels A map specifying "inputs" and "outputs" - dataflow channels (instances of the DataflowQueue or DataflowVariable classes) to use for inputs and outputs
     * @return A new started selector instance with all the channels set
     */
    public final DataflowProcessor prioritySelector(final Map channels) {
        return new DataflowPrioritySelector(this, channels, new DataflowProcessorAtomicBoundAllClosure()).start();
    }
View Full Code Here

     */
    public final DataflowProcessor prioritySelector(final List inputChannels, final List outputChannels) {
        final HashMap<String, Object> params = new HashMap<String, Object>(5);
        params.put(DataflowProcessor.INPUTS, inputChannels);
        params.put(DataflowProcessor.OUTPUTS, outputChannels);
        return new DataflowPrioritySelector(this, params, new DataflowProcessorAtomicBoundAllClosure()).start();
    }
View Full Code Here

TOP

Related Classes of groovyx.gpars.dataflow.operator.DataflowPrioritySelector

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.