This project has retired. For details please refer to its Attic page.
Apache REEF: Org.Apache.REEF.Wake.Impl.ThreadPoolStage< T > Class Template Reference
Apache REEF  0.15.0
Retainable Evaluator Execution Framework
Classes | Public Member Functions | List of all members
Org.Apache.REEF.Wake.Impl.ThreadPoolStage< T > Class Template Reference

Stage that executes an event handler with a thread pool More...

Inherits Org.Apache.REEF.Wake.AbstractEStage< T >.

Public Member Functions

 ThreadPoolStage (IEventHandler< T > handler, int numThreads)
 Constructs a thread-pool stage More...
 
 ThreadPoolStage (IEventHandler< T > handler, ITaskService taskService)
 Constructs a thread-pool stage More...
 
override void OnNext (T value)
 Handles the event using a thread in the thread pool More...
 
override void Dispose ()
 Closes resources More...
 

Additional Inherited Members

- Protected Member Functions inherited from Org.Apache.REEF.Wake.AbstractEStage< T >
 AbstractEStage (string meterName)
 Constructs an abstract estage More...
 

Detailed Description

Stage that executes an event handler with a thread pool

Constructor & Destructor Documentation

Org.Apache.REEF.Wake.Impl.ThreadPoolStage< T >.ThreadPoolStage ( IEventHandler< T >  handler,
int  numThreads 
)
inline

Constructs a thread-pool stage

Parameters
handlerAn event handler to execute
numThreadsThe number of threads to use

Constructs a thread-pool stage

Parameters
handleran event handler to execute
taskServicean external executor service provided

Member Function Documentation

override void Org.Apache.REEF.Wake.Impl.ThreadPoolStage< T >.Dispose ( )
inlinevirtual

Closes resources

Implements Org.Apache.REEF.Wake.AbstractEStage< T >.

override void Org.Apache.REEF.Wake.Impl.ThreadPoolStage< T >.OnNext ( value)
inlinevirtual

Handles the event using a thread in the thread pool

Parameters
valuean event

Reimplemented from Org.Apache.REEF.Wake.AbstractEStage< T >.


The documentation for this class was generated from the following file: