Uses of Class
groovyx.gpars.dataflow.DataFlowVariable

Packages that use DataFlowVariable
groovyx.gpars.dataflow This package holds classes for basic dataflow concurrency constructs, like dataflow variables, streams and threads. 
groovyx.gpars.dataflow.stream   
 

Uses of DataFlowVariable in groovyx.gpars.dataflow
 

Subclasses of DataFlowVariable in groovyx.gpars.dataflow
static class DataFlowVariable.RemoteDataFlowVariable<T>
           
 

Fields in groovyx.gpars.dataflow declared as DataFlowVariable
private static DataFlowVariable<java.lang.Object> DataFlows.DUMMY
           
 

Fields in groovyx.gpars.dataflow with type parameters of type DataFlowVariable
private  java.util.concurrent.LinkedBlockingQueue<DataFlowVariable<T>> DataFlowQueue.queue
          Stores the received DataFlowVariables in the buffer.
private  java.util.Queue<DataFlowVariable<T>> DataFlowQueue.requests
          Stores unsatisfied requests for values
private  java.util.concurrent.ConcurrentMap<java.lang.Object,DataFlowVariable<java.lang.Object>> DataFlows.variables
           
 

Methods in groovyx.gpars.dataflow that return DataFlowVariable
private  DataFlowVariable<T> DataFlowQueue.copyDFV(java.util.Queue<DataFlowVariable<T>> from, java.util.Queue<DataFlowVariable<T>> to)
           
private  DataFlowVariable<java.lang.Object> DataFlows.ensureToContainVariable(java.lang.Object name)
          The idea is following: - we try to putIfAbsent dummy DFV in to map - if something real already there we are done - if not we obtain lock and put new DFV with double check

Unfortunately we have to sync on this as there is no better option (God forbid to sync on name)

private  DataFlowVariable<java.lang.Object> DataFlows.putNewUnderLock(java.lang.Object name)
          Utility method extracted just to help JIT
 DataFlowVariable<java.lang.Object> DataFlows.remove(java.lang.Object name)
          Removes a DFV from the map and binds it to null, if it has not been bound yet
private  DataFlowVariable<T> DataFlowQueue.retrieveForBind()
          Takes the first unsatisfied value request and binds a value on it.
private  DataFlowVariable<T> DataFlowQueue.retrieveOrCreateVariable()
          Checks whether there's a DFV waiting in the queue and retrieves it.
static DataFlowVariable DataFlow.task(java.util.concurrent.Callable callable)
          Creates a new task assigned to a thread from the current parallel group.
static DataFlowVariable DataFlow.task(groovy.lang.Closure code)
          Creates a new task assigned to a thread from the default dataflow parallel group.
static DataFlowVariable DataFlow.task(java.lang.Runnable runnable)
          Creates a new task assigned to a thread from the current parallel group.
 

Methods in groovyx.gpars.dataflow that return types with arguments of type DataFlowVariable
 java.util.Iterator<java.util.Map.Entry<java.lang.Object,DataFlowVariable<java.lang.Object>>> DataFlows.iterator()
          Convenience method to play nicely with Groovy object iteration methods.
 

Method parameters in groovyx.gpars.dataflow with type arguments of type DataFlowVariable
private  DataFlowVariable<T> DataFlowQueue.copyDFV(java.util.Queue<DataFlowVariable<T>> from, java.util.Queue<DataFlowVariable<T>> to)
           
private  DataFlowVariable<T> DataFlowQueue.copyDFV(java.util.Queue<DataFlowVariable<T>> from, java.util.Queue<DataFlowVariable<T>> to)
           
 

Uses of DataFlowVariable in groovyx.gpars.dataflow.stream
 

Fields in groovyx.gpars.dataflow.stream declared as DataFlowVariable
private  DataFlowVariable<T> DataFlowStream.first
           
 

Methods in groovyx.gpars.dataflow.stream that return DataFlowVariable
(package private)  DataFlowVariable<T> DataFlowStream.getFirstDFV()
           
 


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