Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / examples / Callback_Quoter / Notifier.idl
blobcb46d0f09324dc01dcf7cbd02a83d3e5f88a3905
1 /* -*- C++ -*- */
2 #if !defined (_NOTIFIER_IDL)
3 #define _NOTTIFIER_IDL
5 #include "Consumer.idl"
7 /// The Notifier interface in the Callback_Quoter example which
8 /// contains the methods by which the consumer can register,
9 /// unregister from the Notifier.
10 interface Notifier
12 /// Register a distributed callback handler that is invoked when the
13 /// given stock reaches the desired threshold value.
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);
19 /// Remove the handler.
20 void unregister_callback (in Callback_Quoter::Consumer consumer_handler)
21 raises (Callback_Quoter::Invalid_Handle);
23 /// Get market status.
24 void market_status (in string stock_name,
25 in long stock_value);
27 /// Shuts the server down.
28 void shutdown ();
31 #endif /* _NOTIFIER_IDL */