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

Event handler to provide publish/subscribe interfaces More...

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

Public Member Functions

 PubSubEventHandler ()
 Construct a pub-sub event handler More...
 
void Subscribe< U > (IEventHandler< U > handler)
 Subscribe an event handler for an event type More...
 
void OnNext (T value)
 Invoke the subscribed handlers for the event class type More...
 

Detailed Description

Event handler to provide publish/subscribe interfaces

Template Parameters
TThe type of event handler

Constructor & Destructor Documentation

Construct a pub-sub event handler

Member Function Documentation

void Org.Apache.REEF.Wake.Impl.PubSubEventHandler< T >.OnNext ( value)
inline

Invoke the subscribed handlers for the event class type

Parameters
valueThe event to process

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

void Org.Apache.REEF.Wake.Impl.PubSubEventHandler< T >.Subscribe< U > ( IEventHandler< U >  handler)
inline

Subscribe an event handler for an event type

Template Parameters
UThe type of event handler
Parameters
handlerThe event handler
Type Constraints
U :T 

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