But this is Observer what you mean.
What I have implemented is the following:
My Publisher gets data from external,...checks the content and sends this data to the right subscriber.
When the content of the data includes an information to broadcast the incoming data.
It broadcast it to all subscribers.
When a subscriber is not known my publisher creates a new subscriber (thread).
I think that this is not Observer. Observer pattern sends every time the incoming data to all subscribers, without checking the content.
I think that what I made is the content-based Publish Subscriber model.
But I am not sure if this is the right name for it....I need to define it in my thesis.
Can someone give me a hint?
Bookmarks