org.codehaus.gpars

groovyx.gpars.dataflow
[Java] Interface DataflowWriteChannel


public interface DataflowWriteChannel

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

Authors:
Vaclav Pech Date: 21st Sep 2010


Method Summary
void bind(java.lang.Object value)

Assigns a value to the variable.

DataflowWriteChannel leftShift(java.lang.Object 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(java.lang.Object 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(java.lang.Object 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–2012 Václav Pech. All Rights Reserved.