Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / Callback_Quoter / Notifier.idl
blobbfce4c6eb7c6fa14abc9f3178a2f4d63b0a3ee77
1 /* -*- C++ -*- */
2 #if !defined (_NOTIFIER_IDL)
3 #define _NOTTIFIER_IDL
5 #include "Consumer.idl"
7 interface Notifier
9 // = TITLE
10 // The Notifier interface in the Callback_Quoter example which
11 // contains the methods by which the consumer can register,
12 // unregister from the Notifier.
14 void register_callback (in string stock_name,
15 in long threshold_value,
16 in Callback_Quoter::Consumer consumer_handler)
17 raises (Callback_Quoter::Invalid_Stock);
18 // Register a distributed callback handler that is invoked when the
19 // given stock reaches the desired threshold value.
21 void unregister_callback (in Callback_Quoter::Consumer consumer_handler)
22 raises (Callback_Quoter::Invalid_Handle);
23 // Remove the handler.
25 void market_status (in string stock_name,
26 in long stock_value);
27 // Get market status.
29 void shutdown ();
30 // Shuts the server down.
33 #endif /* _NOTIFIER_IDL */