org.omg.PortableServer

Class RequestProcessingPolicyValue

public class RequestProcessingPolicyValue extends Object implements Serializable, IDLEntity

Specifies the behaviour in the case when the requested object is not found in the Active Object Map or that map is not in use. The map is not in use when the {@link ServantRetentionPolicyValue#NON_RETAIN} policy is active.
Field Summary
static RequestProcessingPolicyValueUSE_ACTIVE_OBJECT_MAP_ONLY
An instance of RequestProcessingPolicyValue, initialized to USE_ACTIVE_OBJECT_MAP_ONLY.
static RequestProcessingPolicyValueUSE_DEFAULT_SERVANT
An instance of RequestProcessingPolicyValue, initialized to USE_DEFAULT_SERVANT.
static RequestProcessingPolicyValueUSE_SERVANT_MANAGER
An instance of RequestProcessingPolicyValue, initialized to USE_SERVANT_MANAGER.
static int_USE_ACTIVE_OBJECT_MAP_ONLY
The possible value of this enumeration (USE_ACTIVE_OBJECT_MAP_ONLY).
static int_USE_DEFAULT_SERVANT
The possible value of this enumeration (USE_DEFAULT_SERVANT).
static int_USE_SERVANT_MANAGER
The possible value of this enumeration (USE_SERVANT_MANAGER).
Constructor Summary
protected RequestProcessingPolicyValue(int a_value)
Normally, no new instances are required, so the constructor is protected.
Method Summary
static RequestProcessingPolicyValuefrom_int(int code)
Returns the RequestProcessingPolicyValue, matching the given integer constant.
StringtoString()
Returns a short string representation.
intvalue()
Returns the integer code of the policy value.

Field Detail

USE_ACTIVE_OBJECT_MAP_ONLY

public static final RequestProcessingPolicyValue USE_ACTIVE_OBJECT_MAP_ONLY
An instance of RequestProcessingPolicyValue, initialized to USE_ACTIVE_OBJECT_MAP_ONLY.

USE_DEFAULT_SERVANT

public static final RequestProcessingPolicyValue USE_DEFAULT_SERVANT
An instance of RequestProcessingPolicyValue, initialized to USE_DEFAULT_SERVANT.

USE_SERVANT_MANAGER

public static final RequestProcessingPolicyValue USE_SERVANT_MANAGER
An instance of RequestProcessingPolicyValue, initialized to USE_SERVANT_MANAGER.

_USE_ACTIVE_OBJECT_MAP_ONLY

public static final int _USE_ACTIVE_OBJECT_MAP_ONLY
The possible value of this enumeration (USE_ACTIVE_OBJECT_MAP_ONLY).

_USE_DEFAULT_SERVANT

public static final int _USE_DEFAULT_SERVANT
The possible value of this enumeration (USE_DEFAULT_SERVANT).

_USE_SERVANT_MANAGER

public static final int _USE_SERVANT_MANAGER
The possible value of this enumeration (USE_SERVANT_MANAGER).

Constructor Detail

RequestProcessingPolicyValue

protected RequestProcessingPolicyValue(int a_value)
Normally, no new instances are required, so the constructor is protected.

Method Detail

from_int

public static RequestProcessingPolicyValue from_int(int code)
Returns the RequestProcessingPolicyValue, matching the given integer constant.

Parameters: code one of _USE_ACTIVE_OBJECT_MAP_ONLY, _USE_DEFAULT_SERVANT, _USE_SERVANT_MANAGER.

Returns: one of USE_ACTIVE_OBJECT_MAP_ONLY, USE_DEFAULT_SERVANT, USE_SERVANT_MANAGER.

Throws: BAD_PARAM if the parameter is not one of the valid values.

toString

public String toString()
Returns a short string representation.

Returns: the name of the current enumeration value.

value

public int value()
Returns the integer code of the policy value.

Returns: one of _USE_ACTIVE_OBJECT_MAP_ONLY, _USE_DEFAULT_SERVANT, _USE_SERVANT_MANAGER.