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 one client side policy rustorb has is 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).

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§

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.
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. 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.