Skip to main content

Module policy

Module policy 

Source
Expand description

CORBA::ORB::create_policy and the client side policy overrides of the Messaging specification: Object::set_policy_overrides, the ORB’s PolicyManager and the thread’s PolicyCurrent.

The client side policies rustorb has are Messaging::RelativeRoundtripTimeoutPolicy, the standard form of the call timeouts: overriding it on an object reference, on the calling thread or on the ORB sets the same timeout as ObjectRef::set_call_timeout, set_thread_call_timeout and Orb::set_call_timeout (see docs/orb-operations.md); and Messaging::SyncScopePolicy, how far a oneway request goes before the call returns (docs/sync-scope.md).

Structs§

PolicyError
CORBA::PolicyError, raised by Orb::create_policy: the PolicyErrorCode in reason.

Enums§

PolicyValue
A policy that Orb::create_policy makes: a POA policy, or a client side policy that can override the defaults of a reference, a thread or the ORB.
SetOverrideType
CORBA::SetOverrideType.

Constants§

BIDIRECTIONAL_POLICY_TYPE
BiDirPolicy::BIDIRECTIONAL_POLICY_TYPE.
ID_ASSIGNMENT_POLICY_ID
PortableServer::ID_ASSIGNMENT_POLICY_ID.
ID_UNIQUENESS_POLICY_ID
PortableServer::ID_UNIQUENESS_POLICY_ID.
IMPLICIT_ACTIVATION_POLICY_ID
PortableServer::IMPLICIT_ACTIVATION_POLICY_ID.
LIFESPAN_POLICY_ID
PortableServer::LIFESPAN_POLICY_ID.
RELATIVE_RT_TIMEOUT_POLICY_TYPE
Messaging::RELATIVE_RT_TIMEOUT_POLICY_TYPE.
REQUEST_PROCESSING_POLICY_ID
PortableServer::REQUEST_PROCESSING_POLICY_ID.
SERVANT_RETENTION_POLICY_ID
PortableServer::SERVANT_RETENTION_POLICY_ID.
SYNC_SCOPE_POLICY_TYPE
Messaging::SYNC_SCOPE_POLICY_TYPE.
THREAD_POLICY_ID
PortableServer::THREAD_POLICY_ID; the other POA policies follow it, up to REQUEST_PROCESSING_POLICY_ID (22).

Functions§

create_policy
create_policy without the ORB: see Orb::create_policy.
set_thread_policy_overrides
PolicyCurrent::set_policy_overrides: the overrides of the calling thread, for every ORB. A RelativeRoundtripTimeoutPolicy sets the thread’s call timeout (set_thread_call_timeout); without one (after SET_OVERRIDE) the thread has none. A SyncScopePolicy sets how far the thread’s oneway requests go. NO_PERMISSION for a POA policy.
thread_policy_overrides
PolicyCurrent::get_policy_overrides: the overrides of the calling thread of the types types, or all of them when types is empty.

Type Aliases§

PolicyType
CORBA::PolicyType.