groovyx.gpars.dataflow
Interface DataflowWriteChannel<T>

All Known Subinterfaces:
DataflowChannel<T>
All Known Implementing Classes:
DataflowBroadcast, DataflowQueue, DataflowStreamWriteAdapter, DataflowVariable, DataflowVariable.RemoteDataflowVariable, SyncDataflowBroadcast, SyncDataflowQueue, SyncDataflowVariable

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–2012 Václav Pech. All Rights Reserved.