groovyx.gpars.dataflow
Interface DataFlowWriteChannel<T>

All Known Subinterfaces:
DataFlowChannel<T>
All Known Implementing Classes:
DataFlowBroadcast, DataFlowQueue, DataFlowStreamWriteAdapter, DataFlowVariable, DataFlowVariable.RemoteDataFlowVariable

public interface DataFlowWriteChannel<T>

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

Author:
Vaclav Pech Date: 21st Sep 2010

Method Summary
 void bind(T value)
          Assigns a value to the variable.
 DataFlowWriteChannel<T> leftShift(DataFlowReadChannel<T> ref)
          Assigns a value from one DataFlowVariable instance to this variable.
 DataFlowWriteChannel<T> leftShift(T value)
          Assigns a value to the variable.
 

Method Detail

leftShift

DataFlowWriteChannel<T> 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

bind

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

DataFlowWriteChannel<T> leftShift(DataFlowReadChannel<T> 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.