public class ServantRetentionPolicyValue extends Object implements Serializable, IDLEntity
Modifier and Type | Field and Description |
---|---|
static int |
_NON_RETAIN
The possible value of this enumeration (NON_RETAIN).
|
static int |
_RETAIN
The possible value of this enumeration (RETAIN).
|
static ServantRetentionPolicyValue |
NON_RETAIN
An instance of ServantRetentionPolicyValue, indicating that
the POA does not use the Active Object Map.
|
static ServantRetentionPolicyValue |
RETAIN
An instance of ServantRetentionPolicyValue, indicating that
the POA retains active servants in its Active Object Map.
|
Modifier | Constructor and Description |
---|---|
protected |
ServantRetentionPolicyValue(int a_value)
Normally, no new instances are required, so the constructor is protected.
|
Modifier and Type | Method and Description |
---|---|
static ServantRetentionPolicyValue |
from_int(int code)
Returns the ServantRetentionPolicyValue, matching the given integer constant.
|
String |
toString()
Returns a short string representation.
|
int |
value()
Returns the integer code of the policy value.
|
public static final int _RETAIN
public static final ServantRetentionPolicyValue RETAIN
public static final int _NON_RETAIN
public static final ServantRetentionPolicyValue NON_RETAIN
protected ServantRetentionPolicyValue(int a_value)
public static ServantRetentionPolicyValue from_int(int code)
code
- one of _RETAIN, _NON_RETAIN.BAD_PARAM
- if the parameter is not one of the valid values.public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
public int value()