Previous Table of Contents Next


22.10.2 Persistent Type-Specific Poller


   When Time-Independent Invocations are made, the reply may be obtained by a different client than the one that made the original request. An instance of persistent poller is returned from such invocations. The PersistentPoller contains the state necessary to allow polling to be performed in a client distinct from the one that made the request. This state is used privately by the messaging-aware ORB and is not directly accessible to the application.

   The generated PersistentPoller valuetype is derived from the basic one. It adds no methods, only one piece of private state. For an interface with the unqualified name ifaceName the following PersistentPoller is generated:

   valuetype AMI_<ifaceName>PersistentPoller : AMI_<ifaceName>Poller { MessageRouting::PersistentRequest outstanding_request;

   };

   Just as with any CORBA valuetype this PersistentPoller can be passed as an argument to IDL operations and a copy of the Poller will be instantiated local to the callee.