Apache REEF
0.15.0
Retainable Evaluator Execution Framework
|
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... | |
Stage that executes an event handler with a thread pool
|
inline |
Constructs a thread-pool stage
handler | An event handler to execute |
numThreads | The number of threads to use |
|
inline |
Constructs a thread-pool stage
handler | an event handler to execute |
taskService | an external executor service provided |
|
inlinevirtual |
Closes resources
Implements Org.Apache.REEF.Wake.AbstractEStage< T >.
|
inlinevirtual |
Handles the event using a thread in the thread pool
value | an event |
Reimplemented from Org.Apache.REEF.Wake.AbstractEStage< T >.