Subject: SubscriptionResponder
From: Ahluwalia, Amy (Ahluwalia@tpd.tno.nl)
Date: Thu Oct 03 2002 - 15:28:41 MET DST
Hi
I'm having a go at implementing an Subscribe Interaction Protocol using the
classes: SubscriptionInitiator and SubscriptionResponder.
What I don't understand is the following.
Let's say several agents have subscribed to the same informationService.
At a certain point the SubscriptionResponder wants to send an notification
msg to all the agents who have subscribed themselves.
At the moment it seems as if that means that the agent with the
SubscriptionResponder behaviour has to call the
Subscription.notify(notificationMsg) method, once for every
Subscription/agent that is subscribed.
Which for every call, interrupts the MsgReceiver to send out 1
notificationMsg and then returns to its RECEIVE_SUBSCRIPTION state, which is
then again interrupted for the next notificationMsg to be send out.
Would this not cause a unwanted time delay between the first agent receiving
an notificationMsg and let's say the 50th agent receiving that same
notificationMsg Or am I using the SubscriptionResponder class in the wrong
way?
Cheers,
Amy Ahluwalia
This archive was generated by hypermail 2a22 : Thu Oct 03 2002 - 15:28:54 MET DST