Previous Table of Contents Next


22.2.2 Synchronization Scope


   22.2.2.1 typedef short SyncScope

   Describes the level of synchronization for a request with respect to the target. Values of type SyncScope are used in conjunction with a SyncScopePolicy, as described in Section 22.2.2.2, “interface SyncScopePolicy,? on page 22-7, to control the behavior of oneway operations. All non-negative values are reserved for use in OMG specifications. Any negative value of SyncScope is considered a vendor extension.

   22.2.2.2 interface SyncScopePolicy

   This interface is a local object derived from CORBA::Policy. It is applied to oneway operations to indicate the synchronization scope with respect to the target of that operation request. It is ignored when any non-oneway operation is invoked. This policy is also applied when the DII is used with a flag of INV_NO_RESPONSE since the implementation of the DII is not required to consult an interface definition to determine if an operation is declared oneway. The default value of this Policy is not defined. Applications must explicitly set an ORB-level SyncScopePolicy to ensure portability across ORB implementations. When instances of SyncScopePolicy are created, a value of type Messaging::SyncScope is passed to CORBA::ORB::create_policy. This policy is only applicable as a client-side override. The client’s SyncScopePolicy is propagated within a request in the RequestHeader’s response_flags as described in GIOP Request Header.