org.codehaus.gpars

groovyx.gpars.dataflow
Interface DataFlowWriteChannel


interface DataFlowWriteChannel

A common interface for all writable dataflow variables, streams or queues

Authors:
Vaclav Pech Date: 21st Sep 2010


Method Summary
void bind(T value)

Assigns a value to the variable.

DataFlowWriteChannel leftShift(T value)

Assigns a value to the variable.

DataFlowWriteChannel leftShift(DataFlowReadChannel ref)

Assigns a value from one DataFlowVariable instance to this variable.

 

Method Detail

bind

public void bind(T value)
Assigns a value to the variable. Can only be invoked once on each instance of DataFlowVariable
Parameters:
value - The value to assign


leftShift

public DataFlowWriteChannel leftShift(T value)
Assigns a value to the variable. Can only be invoked once on each instance of DataFlowVariable
Parameters:
value - The value to assign
Returns:
The current channel instance


leftShift

public DataFlowWriteChannel leftShift(DataFlowReadChannel ref)
Assigns a value from one DataFlowVariable instance to this variable. Can only be invoked once on each instance of DataFlowVariable
Parameters:
ref - The DataFlowVariable instance the value of which to bind
Returns:
The current channel instance


 

Copyright © 2008–2010 Václav Pech. All Rights Reserved.