|
method to handle events
- Returns:
- code indicating what should be done with the stream: StreamEvent::STREAM_OK - no change to status StreamEvent::STREAM_ACTIVE - keep the stream active StreamEvent::STREAM_EXPIRE - expire the stream StreamEvent::STREAM_ERASE - delete the stream StreamEvent::STREAM_ERROR - complain and delete the stream
- Note:
- any change in status will generate a new event, so if a handler handles a stream expiry event and returns STREAM_EXPIRE, no new event will be generated. However, if it handles a stream active event and returns a STREAM_EXPIRE, the stream will be expired and a new stream expiry event will be generated. Note that this means we'll have to worry about loops.
Implemented in FilteredStreamListener. |